 |
C++Talk.NET C++ language newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Alex J. Dam Guest
|
Posted: Fri Jan 30, 2004 10:28 pm Post subject: Unicode in C++ source files |
|
|
Hi.
I found this in the 1997 standard draft under 2.10:
An identifier is an arbitrarily long sequence of letters and digits.
Each universal-character-name in an identifier shall designate a char-
acter whose encoding in ISO 10646 falls into one of the ranges speci-
fied in _extendid_.
Does it really mean that C++ compilers should accept identifiers with
accented letters and all?
If it does, is there a compiler which accepts them?
Thanks.
--
Alex J. Dam
"Oh, I got plenty o' nuttin',
an' nuttin's plenty fo' me"
-- Porgy
|
|
| Back to top |
|
 |
White Wolf Guest
|
Posted: Fri Jan 30, 2004 11:40 pm Post subject: Re: Unicode in C++ source files |
|
|
Alex J. Dam wrote:
| Quote: | Hi.
I found this in the 1997 standard draft under 2.10:
An identifier is an arbitrarily long sequence of letters and digits.
Each universal-character-name in an identifier shall designate a char-
acter whose encoding in ISO 10646 falls into one of the ranges speci-
fied in _extendid_.
Does it really mean that C++ compilers should accept identifiers with
accented letters and all?
If it does, is there a compiler which accepts them?
|
IIRC it was mentioned somewhere in the moderated newsgroup. Basically what
the language lawyers there explained was that there are
implementation/platform dependent things involved here, so code using such
characters would not be portable. I mean you would need to convert it just
like you need to convert old MS-DOS stuff if you want to display it in
Windows. And IIRC to that problem they have attributed that fact that no
compiler implements this. Since I have only a vague recollection of this
postings I might be wrong.
--
WW aka Attila
:::
Whales are mammals. Mammals have hair. SHAVE THE WHALES!
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|