Re: [Python-Dev] String encoding
Fred L. Drake wrote
I recall a fair bit of discussion about wchar_t when it was introduced to ANSI C, and the character set and encoding were specifically not made part of the specification. Making a requirement that wchar_t be Unicode doesn't make a lot of sense, and opens up potential portability issues.
In ISO (!) C99, an implementation may define __STDC_ISO_10646__ to indicate that wchar_t is Unicode. The exact wording is # A decimal constant of the form yyyymmL (for example, 199712L), # intended to indicate that values of type wchar_t are the coded # representations of the characters defined by ISO/IEC 10646, along # with all amendments and technical corrigenda as of the specified # year and month. Of course, at the moment, there are few, if any, implementations that define this macro. Regards, Martin
On Sun, 28 May 2000, Martin v. Loewis wrote:
In ISO (!) C99, an implementation may define __STDC_ISO_10646__ to indicate that wchar_t is Unicode. The exact wording is
This is a real improvement! I've seen brief summmaries of the changes in C99, but I should take a little time to become more familiar with them. It looked like a real improvement.
Of course, at the moment, there are few, if any, implementations that define this macro.
I think the gcc people are still working on it, but that's to be expected; there's a lot of things they're still working on. ;) -Fred -- Fred L. Drake, Jr. <fdrake at acm.org>
participants (2)
-
Fred L. Drake -
Martin v. Loewis