c++/5168: wrong memory representation of special wchar_t char acters like "." (the registered trademark sign)
Denkhaus, Volker
Volker.Denkhaus@softwareag.com
Fri Dec 21 02:56:00 GMT 2001
The following reply was made to PR c++/5168; it has been noted by GNATS.
From: "Denkhaus, Volker" <Volker.Denkhaus@softwareag.com>
To: "'neil@gcc.gnu.org'" <neil@gcc.gnu.org>,
"Denkhaus, Volker"
<Volker.Denkhaus@softwareag.com>,
"Stuehlmeyer, Wolfgang"
<Wolfgang.Stuehlmeyer@softwareag.com>,
"'Alex.Burggraf@softwareag-usa.com'" <Alex.Burggraf@softwareag-usa.com>,
"'gcc-bugs@gcc.gnu.org'" <gcc-bugs@gcc.gnu.org>,
"'gcc-prs@gcc.gnu.org'"
<gcc-prs@gcc.gnu.org>,
"'nobody@gcc.gnu.org'" <nobody@gcc.gnu.org>,
"'gcc-gnats@gcc.gnu.org'" <gcc-gnats@gcc.gnu.org>
Cc:
Subject: RE: c++/5168: wrong memory representation of special wchar_t char
acters like "." (the registered trademark sign)
Date: Fri, 21 Dec 2001 11:48:45 +0100
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
------_=_NextPart_000_01C18A0D.103F5B00
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hi,
I have submitted the code together with the problem subscription. I =
don't
know why it didn't work.
So I attach it to this mail.
regards,
Volker Denkhaus
-----Original Message-----
From: neil@gcc.gnu.org [mailto:neil@gcc.gnu.org]
Sent: Freitag, 21. Dezember 2001 11:45
To: Volker.Denkhaus@softwareag.com; =
Wolfgang.Stuehlmeyer@softwareag.com;
Alex.Burggraf@softwareag-usa.com; gcc-bugs@gcc.gnu.org;
gcc-prs@gcc.gnu.org; nobody@gcc.gnu.org
Subject: Re: c++/5168: wrong memory representation of special wchar_t
characters like "." (the registered trademark sign)
Synopsis: wrong memory representation of special wchar_t characters =
like "=AE"
(the registered trademark sign)
State-Changed-From-To: open->feedback
State-Changed-By: neil
State-Changed-When: Fri Dec 21 02:44:42 2001
State-Changed-Why:
Where is the code? Please cc gcc-gnats@gcc.gnu.org with it;
not me.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=3Dview%20audit-trail&database=
=3Dgcc&p
r=3D5168
------_=_NextPart_000_01C18A0D.103F5B00
Content-Type: application/octet-stream;
name="wchar.cxx"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
filename="wchar.cxx"
#include <iostream>
using namespace std;
// output should be the same for both writes, but it isn't
// on ia64 compiled by gcc-3.0.2.
int main(int argc, char* argv[])
{
const wchar_t* p =3D L"=AE";
cout << hex << *((long*)p) << endl;
const wchar_t* d =3D L"\256";
cout << hex << *((long*)d) << endl;
return 0;
}
------_=_NextPart_000_01C18A0D.103F5B00--
More information about the Gcc-prs
mailing list