Unicode in C++ source files

A

Alex J. Dam

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.
 
W

White Wolf

Alex said:
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,159
Messages
2,570,886
Members
47,419
Latest member
ArturoBres

Latest Threads

Top