[fpc-devel] ThousandSeparator and UTF-8

Graeme Geldenhuys graemeg.lists at gmail.com
Fri Oct 2 16:42:51 CEST 2009


2009/10/2  <petr.kristan at epos.cz>:
> On Linux and cs_CZ.UTF-8 locale is thousand separator set to
> NO-BREAK SPACE (UTF-8: 0xC2 0xA0).
>
> But ThousandSeparator variable is defined as Char. Fpc sets
> ThousandSeparator=0xA0 and kylix ThousandSeparator=0xC2.
>
> Any ideas how to correctly solve it?


This is a know problem reported by me some months ago. Unfortunately
there is no fix in FPC until it full supports unicode with a char > 1
byte.

In the mean time, you will have to define your own locale constants
with correct type sizes and manually do formatting. A pain in the
butt, I know.


-- 
Regards,
  - Graeme -


_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/



More information about the fpc-devel mailing list