[Lazarus] DisableWindowsUnicodeSupport

Bernd Mueller mueller.b at gmx.net
Fri May 8 11:30:04 CEST 2009

Paul Ishenin wrote:
> Bernd Mueller wrote:
>> I would like to use Lazarus without Unicode support on Windows, as it 
>> was possible up to version 0.9.24. I took a recent 0.9.27 snapshot and 
>> compiled it with -dDisableWindowsUnicodeSupport. My "old" projects seem 
>> work well, but the editor does not show the german umlauts correct. I 
>> changed File Settings.../Encodings but this did not help.
> This define is placed in the code temporary. I suppose it will gone with 
> time.
> What problems do you have with unicode version? IOW, why do you need 
> ansi version?

it is the fear, that I could break my working code. This is the main 
reason, why I am still on 0.9.24. From what I have read in this list, 
Unicode handling seems to be very complex and to be honest, I did not 
take the time to look into this subject, because I had no need to do so.

Some of my applications interact with embedded systems which use plain 
short strings for speed reasons. If time does not matter, I use Ansi 
strings. Putting such a string in a TMemo for example would cause 
trouble in Lazarus 0.9.26+. I know, I have to use AnsiToUTF8 now. But I 
could miss something.

So, if there would be an Ansi Lazarus version, I could leave my code as 
it is. May be, that I try to use Unicode Lazarus for new projects.

Thanks anyway for your effort.

Regards, Bernd.

More information about the Lazarus mailing list