[delphizip] Re: Bug report zipMaster179.10.23 on Delphi 2009 in FindInStream()

  • From: RPeters <rpeters@xxxxxxxxxxxxx>
  • To: delphizip@xxxxxxxxxxxxx
  • Date: Sat, 24 Oct 2009 18:07:15 +1100

RPeters wrote:
> l.ploeger@xxxxxx wrote:
>   
>> L.S.,
>>
>> I was testing the language support of the latest release of the ZipMaster 
>> components and couldn't get it to work by using
>>
>> ZipMaster.Language := 'NL';
>>
>> I had {$R ZMRes.res} added to my main unit.
>>
>> As far as I understand there is a problem in 
>>
>> function FindInStream(src: TStream; var segname: String;  var lid: Word): 
>> Boolean;
>>
>> defined in ZMMsgStr.pas.
>>
>> The variables s, l, seg and c are declared as follows
>>
>>   s, l, seg: String;
>>   c:   Char;
>>
>> Whereas they should be declared as 
>>
>>   s, l, seg: AnsiString;
>>   c:   AnsiChar;
>>
>> Using the original code Unicode and Ansi characters got mixed up.
>>
>> I hope this is clear.
>>
>> Best regards,
>>
>> Lennert.
>> -----------
>> To unsubscribe from this list, send an empty e-mail 
>> message to:
>>   delphizip-request@xxxxxxxxxxxxx 
>> and put the word unsubscribe in the subject.
>>
>>   
>>     
> Yes it definitely is a bug but it requires a bit more than that patch.
>
> Its problem is that is that it was designed for ASCII before any thought 
> of Unicode so it is a matter of finding the best compromise of argument 
> types - I think I have it reasonable but I need to do a few more tests 
> so a new build should be available in a day or two.
> Russell Peters
>
>
> __________ Information from ESET NOD32 Antivirus, version of virus signature 
> database 4535 (20091023) __________
>
> The message was checked by ESET NOD32 Antivirus.
>
> http://www.eset.com
>
>
> -----------
> To unsubscribe from this list, send an empty e-mail 
> message to:
>   delphizip-request@xxxxxxxxxxxxx 
> and put the word unsubscribe in the subject.
>
>
> __________ Information from ESET NOD32 Antivirus, version of virus signature 
> database 4535 (20091023) __________
>
> The message was checked by ESET NOD32 Antivirus.
>
> http://www.eset.com
>
>
>   
I have uploaded 1.79.10.24 which fixes the problem
Russell Peters


__________ Information from ESET NOD32 Antivirus, version of virus signature 
database 4537 (20091023) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com


-----------
To unsubscribe from this list, send an empty e-mail 
message to:
  delphizip-request@xxxxxxxxxxxxx 
and put the word unsubscribe in the subject.

Other related posts: