Skip to main content
edited tags; edited tags
Link
Jonas
  • 130.5k
  • 103
  • 330
  • 408
replaced http://stackoverflow.com/ with https://stackoverflow.com/
Source Link
URL Rewriter Bot
URL Rewriter Bot

Possible Duplicate:
C++ source in unicodeC++ source in unicode

I just discovered this line of code in a project:

string überwachung; 

I was surprised, because actually I thought you are not allowed to use umlauts like 'äöü' in C++ code other than in strings and so on, and it would result in a compiler error. But this compiles just fine with visual studio 2008.

  • Is this a special microsoft feature, or are umlauts allowed with other compilers too?
  • Are there any potential problems with that (portability,system language settings..)?
  • I can clearly remember this was not allowed. When did it change?

Kind regards for any clarification

P.S.: the tool cppcheck will even mark this usage as an error, even though it compiles

Possible Duplicate:
C++ source in unicode

I just discovered this line of code in a project:

string überwachung; 

I was surprised, because actually I thought you are not allowed to use umlauts like 'äöü' in C++ code other than in strings and so on, and it would result in a compiler error. But this compiles just fine with visual studio 2008.

  • Is this a special microsoft feature, or are umlauts allowed with other compilers too?
  • Are there any potential problems with that (portability,system language settings..)?
  • I can clearly remember this was not allowed. When did it change?

Kind regards for any clarification

P.S.: the tool cppcheck will even mark this usage as an error, even though it compiles

Possible Duplicate:
C++ source in unicode

I just discovered this line of code in a project:

string überwachung; 

I was surprised, because actually I thought you are not allowed to use umlauts like 'äöü' in C++ code other than in strings and so on, and it would result in a compiler error. But this compiles just fine with visual studio 2008.

  • Is this a special microsoft feature, or are umlauts allowed with other compilers too?
  • Are there any potential problems with that (portability,system language settings..)?
  • I can clearly remember this was not allowed. When did it change?

Kind regards for any clarification

P.S.: the tool cppcheck will even mark this usage as an error, even though it compiles

insert duplicate link
Source Link

Possible Duplicate:
C++ source in unicode

I just discovered this line of code in a project:

string überwachung; 

I was surprised, because actually I thought you are not allowed to use umlauts like 'äöü' in C++ code other than in strings and so on, and it would result in a compiler error. But this compiles just fine with visual studio 2008.

  • Is this a special microsoft feature, or are umlauts allowed with other compilers too?
  • Are there any potential problems with that (portability,system language settings..)?
  • I can clearly remember this was not allowed. When did it change?

Kind regards for any clarification

P.S.: the tool cppcheck will even mark this usage as an error, even though it compiles

I just discovered this line of code in a project:

string überwachung; 

I was surprised, because actually I thought you are not allowed to use umlauts like 'äöü' in C++ code other than in strings and so on, and it would result in a compiler error. But this compiles just fine with visual studio 2008.

  • Is this a special microsoft feature, or are umlauts allowed with other compilers too?
  • Are there any potential problems with that (portability,system language settings..)?
  • I can clearly remember this was not allowed. When did it change?

Kind regards for any clarification

P.S.: the tool cppcheck will even mark this usage as an error, even though it compiles

Possible Duplicate:
C++ source in unicode

I just discovered this line of code in a project:

string überwachung; 

I was surprised, because actually I thought you are not allowed to use umlauts like 'äöü' in C++ code other than in strings and so on, and it would result in a compiler error. But this compiles just fine with visual studio 2008.

  • Is this a special microsoft feature, or are umlauts allowed with other compilers too?
  • Are there any potential problems with that (portability,system language settings..)?
  • I can clearly remember this was not allowed. When did it change?

Kind regards for any clarification

P.S.: the tool cppcheck will even mark this usage as an error, even though it compiles

Post Closed as "exact duplicate" by Cody Gray, Ben Voigt, Mark B, Bo Persson, Richard
Source Link
nabulke
  • 11.3k
  • 13
  • 71
  • 116
Loading