phobos/tango on win32: please drop ANSI "support"

Lars Ivar Igesund larsivar at igesund.net
Thu Feb 15 03:01:15 PST 2007


Lionello Lunesu wrote:

> Lars Ivar Igesund wrote:
>> Lionello Lunesu wrote:
>> 
>>> kris wrote:
>>>> Regarding Tango, it uses the WindowsA functions only if
>>>> -verion=Win32SansUnicode is configured. This switch is for supporting
>>>> certain older environments, but does /not/ imply that code-pages are
>>>> supported in Tango. There has never been an intent to do so.
>>> Then it's not actually supporting those older environments at all.
>> 
>> Would depend on the nature of said environments, no?
> 
> ??
> 
> That would mean that a char[] in Tango is not always utf8 and could in
> fact be code-page specific encoding. This is quite nasty for somebody
> writing library functions in Tango.
> 
> L.

No, as Kris mentions, code pages are not currently supported in Tango (they
are possible to support via the ICU bindings in Mango), but in environments
where ASCII is the only used subset (like on your typical old PC in the US
of A) would be supported by the functionality in question. This is not
compiled in by default in Tango, and as such you use it only if you are
aware that you don't use standard Unicode compliant Tango.

-- 
Lars Ivar Igesund
blog at http://larsivi.net
DSource & #D: larsivi
Dancing the Tango



More information about the Digitalmars-d mailing list