[fpc-devel] patch for GenericAnsiStrComp

Vincent Snijders vsnijders at quicknet.nl
Thu Sep 22 09:03:33 CEST 2005


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).

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.

Vincent.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ansistrcomp.diff
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20050922/a90dd723/attachment.ksh>


More information about the fpc-devel mailing list