[fpc-devel] Controlling the output of the widestring manager

Florian Klaempfl florian at freepascal.org
Mon Dec 3 08:44:33 CET 2007


Jonas Maebe schrieb:
> Florian Klaempfl wrote on zo, 02 dec 2007:
> 
>> Felipe Monteiro de Carvalho schrieb:
> 
>> Well, unix people don't seem to care about completing the cwstring unit
>> :)
> 
> At least this unix person didn't know those routines were mandatory,
> otherwise I would have added them a long time ago. There don't seem to
> be any tests for them either which demonstrate that they need to be
> implemented, or which allow testing potential implementations (or the
> correctness of the Windows implementations).

Making such tests is not easy because they depend on the system locale.
Using only latin characters make it work on all systems but with latin
only also the default implemenation works and renders the test useless.
Using non-latin characters might break because the locale of the test
system isn't known. Maybe testing the locale in the tests and abort with
a warning but with no error if the test is run on a non
8859-1/utf-8/cp1250 system might be a way to go.



More information about the fpc-devel mailing list