This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Selectable execution character set (and a whole bunch of sideeffe


kaih@khms.westfalen.de (Kai Henningsen) writes:

>> > While there's nothing wrong with teaching iconv about UTF-EBCDIC, why on
>> > earth would you want to *use* it?
>>
>> Because it does exactly what I need: it's isomorphic to Unicode (so
>> there is no problem implementing \u escapes) and unibyte characters
>> match EBCDIC code points (so I don't have to replace every last
>> character constant in cpplib with a number, at great cost to
>> readability).
>
> Hmmm ...
>
> It's certainly a bootstrapping problem.
>
> However, wouldn't
>         char c = L'A';
> work (in gcc) for getting 0x41 even with a local charset of EBCDIC?

No.  I believe that historical releases of GCC, configured for
i370-ibm-mvs or -oe, would produce the EBCDIC value of 'A' padded to
the width of wchar_t and then truncated back to 'char'.

I do not know what encoding wchar_t is supposed to use on an EBCDIC
platform; I inquired of some people who ought to know, but never heard
back.

zw


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]