I'm trying to convert a Delphi application to Lazarus/FPC and so far made very good progress. Using FPC 3.0.4 and Lazarus 1.8 ( 64-bit ) on Windows 10.
However, in one of my functions I need to convert the first character of each word to uppercase and it fails. I did the following tests on Windows 10 :
var L_String: string; ( AnsiString enabled in settings )
L_String := 'öhh';
ShowMessage(AnsiProperCase(L_String,StdWordDelims)); -> Application crashes ( project raised exception class 'External: SIGSEGV')
ShowMessage(AnsiUpperCase(L_String)); -> displays 'ÖHH' as expected
ShowMessage(AnsiUpperCase(L_String[1])); -> displays a BLANK in the dialog box
ShowMessage(AnsiUpperCase(L_String[2])); -> displays a BLANK in the dialog box
I really don't find a solution and any help is really appreciated.
Romain