c++/5168: wrong memory representation of special wchar_t characters like "®" (the registered trademark sign)
Volker.Denkhaus@softwareag.com
Volker.Denkhaus@softwareag.com
Fri Dec 21 05:27:00 GMT 2001
>Number: 5168
>Category: c++
>Synopsis: wrong memory representation of special wchar_t characters like "®" (the registered trademark sign)
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Dec 21 01:56:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator: Volker Denkhaus
>Release: gcc 3.0.2 for RedHat 7.1 Itanium-64
>Organization:
>Environment:
RedHat 7.1, gcc 3.0.2, libc 2.2.3
>Description:
We have a sample program ftped from a Windows machine. It uses special characters above ASCII 128 like the registered trademark characters 0xae. If we define a wchar_t variables and assign this character the pointer to the variable shows a value 0xffffffae. With Linux S/390 and x86 it works fine and the value is 0xae as expected. I attach the sample program.
>How-To-Repeat:
g++ -g -o test wchar.cxx;
run ./test to see the output
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the Gcc-bugs
mailing list