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.

_______________________________________________
fpc-devel maillist  -  [email protected]
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to