www.digitalmars.com         C & C++   DMDScript  

c++.beta - -j1 does not work

reply nyra <nyra_member pathlink.com> writes:
I suddenly find the options -j0 -j1 -j2 seems not to work correct!
When I put some chinese in comments with error in same line,
I get no comments outputed by compiler.

For example:
s; //some comments, s is not defined symbol
this line will be noticed by compiler like this:
s; //some comments, s is not defined symbol
^ this symbol is undefined.
compiler gives me the original source line include comments.
Ok, then I put some chinese character in the comments
(of cause, with the -j1 options, but nothing with it)
compiler gives me blank:
s; //  ?  ?  ?, s is not defined symbol
^ this symbol is undefined.
the ? should be a chinese character.
I have seen the binary value of above line.
compiler really put blank space, not unicode, not UTF-8.

I'm confusing, what did dmc do while outputing or processing source.
Dec 31 2003
parent reply "Walter" <walter digitalmars.com> writes:
I'll have to see a small example. As far as I know, absolutely nothing has
changed for years in the -j support! Thanks, -Walter

"nyra" <nyra_member pathlink.com> wrote in message
news:bsv69q$1oji$1 digitaldaemon.com...
 I suddenly find the options -j0 -j1 -j2 seems not to work correct!
 When I put some chinese in comments with error in same line,
 I get no comments outputed by compiler.

 For example:
 s; //some comments, s is not defined symbol
 this line will be noticed by compiler like this:
 s; //some comments, s is not defined symbol
 ^ this symbol is undefined.
 compiler gives me the original source line include comments.
 Ok, then I put some chinese character in the comments
 (of cause, with the -j1 options, but nothing with it)
 compiler gives me blank:
 s; //  ?  ?  ?, s is not defined symbol
 ^ this symbol is undefined.
 the ? should be a chinese character.
 I have seen the binary value of above line.
 compiler really put blank space, not unicode, not UTF-8.

 I'm confusing, what did dmc do while outputing or processing source.
Jan 01 2004
parent reply nyra <nyra_member pathlink.com> writes:
here is a easy simple:
a undefine symbol name with a comments int chinese!

s;//ÖÐÎÄ×¢ÊÍ

but I'm not sure you can see it correctly.
this is the corresponding GBK value of chinese character
in HEX

D6D0 CEC4 D7A2 CACD 
Jan 02 2004
parent "Walter" <walter digitalmars.com> writes:
Thanks, I'll take it from here.
Jan 02 2004