This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

c++/5168: wrong memory representation of special wchar_t characters like "®" (the registered trademark sign)



>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:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]