[fpc-devel] patch for GenericAnsiStrComp

Florian Klaempfl florian at freepascal.org
Sat Sep 24 12:04:52 CEST 2005


Vincent Snijders wrote:

> Hi,
> 
> This patch fixes GenericAnsiStrComp when two equal strings are compared 
> or two strings that are the same (abc, abc) upto the last char of the 
> shortest (abc, abcd).

Applied.

> 
> I could provide a test program for the test suite. Can you give an 
> example where runtime behaviour is checked (compilling is not the issue 
> here)?
> 
> Also, please take a look at the initialization order in win32\sysutils.pp
> 
>   InitWin32Widestrings;
>   InitExceptions;       { Initialize exceptions. OS independent }
>   InitInternational;    { Initialize internationalization settings }
> 
> InitWin32WideString sets win32 specific function for the widestring 
> manager.
> InitInternational overwrites them with the generic ones. Maybe 
> FPC_NOGENERICANSIROUTINES should be defined for win32 too.

Fixed, thx.




More information about the fpc-devel mailing list