[fpc-devel] Russian locale information not compatible with FPC locale variables
Daniël Mantione
daniel.mantione at freepascal.org
Tue Jul 29 12:12:59 CEST 2008
Op Tue, 29 Jul 2008, schreef Graeme Geldenhuys:
> So back to my original question.... :)
>
> Due to ThousandSeparator being a Char type, is using a normal space
> ($20) the only available option for Russian users, using the current
> RTL implementation? Though this might cause issues in text wrapping
> routines which can now not distinguish between breaking spaces and
> non-breaking spaces.
A possible hack could be to abuse an ASCII control character for the non
breaking space, for example ThousandSeparator=#0 means a non breaking
space, so it is later converted back to the right utf-8 representation.
> The only other alternative is writing my own string format functions
> like fpgFormatFloat() and hope the users of fpGUI use the custom
> written functions instead of the RTL ones. This also means I need to
> implement my own locale variables to be Unicode compatible. What a
> job, for something that seemed so small an issue in the beginning. :)
Well, this seems exactly what Martin has done, so perhaps you can reuse
some of his work.
Daniël
More information about the fpc-devel
mailing list