Garbage in, garbage out — and this means Ü!
So the other day a colleague over in C++-ville forwarded a bug report he was looking at, one he wanted my thoughts about. It went something like this: Repro Steps: + Change language in Control Panel under “Regional an Language Options” tab “Advanced” to Japanese + Make new c++ console project with MFC support + Change Character set to Multi-Byte (_MBCS) + Compile folowing Code (0xFC => “ü”): char* test= “xfc”; CString tt; tt = test; tt.MakeUpper(); + Run or Debug the program => Crashes when MakeUpper() is called. The result of running this code, as the last step mentions, is a crash in the “Microsoft Visual C++ Debug Library”
View post:
Garbage in, garbage out — and this means Ü!


