R
red floyd
I've got some code where somebody cut&pasted some comments from MS Word,
and so these comments have "smart quotes" (in particular apostrophes)
embedded.
The apostrophe is character hex 0x92.
2.1 indicates that characters not in the source character set are
converted to the universal character name that designates the character.
So far, so good. The non-source character gets translated. No big deal.
But then we have 2.2/2. "If the value for a universal character name is
less than 0x20 or in the range 0x7f-0x9f (inclusive), or if the
universal character name designates a character in the basic source
character set, then the program is ill-formed."
So would this character of 0x92 in a comment cause the entire program to
be ill-formed? Or is it OK because it's in a comment?
and so these comments have "smart quotes" (in particular apostrophes)
embedded.
The apostrophe is character hex 0x92.
2.1 indicates that characters not in the source character set are
converted to the universal character name that designates the character.
So far, so good. The non-source character gets translated. No big deal.
But then we have 2.2/2. "If the value for a universal character name is
less than 0x20 or in the range 0x7f-0x9f (inclusive), or if the
universal character name designates a character in the basic source
character set, then the program is ill-formed."
So would this character of 0x92 in a comment cause the entire program to
be ill-formed? Or is it OK because it's in a comment?