[fpc-devel] Bug in Gettext?
k at ailis.de
Fri Jan 9 14:43:18 CET 2009
Michael Van Canneyt wrote:
> Probably the error is in the hash code ?
> Does GNU gettext take the #4 into account when it generates the hash code ?
gettext doesn't has its own hash method. It uses the global hash
function defined in the objpas unit. I already wondered how this can
work at all. Maybe its the same algorithm as used by the msgfmt tool of
gettext. Don't know. I have no experience with hash algorithms. But this
code generates different hash codes so maybe this proves that #4 is not
ignored in the hash:
WriteLn(Hash('hallo' + #4));
WriteLn(Hash('hallo' + #3));
Bye, K <http://www.ailis.de/~k/>
[A735 47EC D87B 1F15 C1E9 53D3 AA03 6173 A723 E391]
(Finger k at ailis.de to get public key)
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 260 bytes
Desc: OpenPGP digital signature
More information about the fpc-devel