libstdc++/7222: g++ 3.1: locale::operator ==() doesn`t work on std::locale("") locales

johnb@stl.sarov.ru johnb@stl.sarov.ru
Sat Jul 6 10:06:00 GMT 2002


>Number:         7222
>Category:       libstdc++
>Synopsis:       g++ 3.1: locale::operator ==() doesn`t work on std::locale("") locales
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jul 06 09:56:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     johnb@stl.sarov.ru
>Release:        g++ 3.1
>Organization:
>Environment:
Red Hat Linux release 7.2, g++ v3.1
>Description:
Comparision of identical constructed as ("") locales doesn`t work - return fail, but for default  ("C") locales it works. See attached testcase.
>How-To-Repeat:
Compile testcase with g++ 3.1 and run it.

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="locale.cpp"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="locale.cpp"

I2luY2x1ZGUgPGlvcz4KI2luY2x1ZGUgPGlvc3RyZWFtPgoKaW50IG1haW4gKCkKIHsKCWludCBy
ZXMgPSAwOwoJc3RkOjpsb2NhbGUgbXlsb2NDKCJDIik7CglzdGQ6OmxvY2FsZSBub3RtaW5lQyAo
IkMiKTsKCglzdGQ6OmxvY2FsZSBteWxvYygiIik7CglzdGQ6OmxvY2FsZSBub3RtaW5lKCIiKTsK
CglpZiAobm90bWluZUMgID09IG15bG9jQykgCgkgIHN0ZDo6Y291dCA8PCAiQyBsb2NhbGVzIGNv
bXBhcmlzaW9uIHBhc3NlZFxuIjsKCWVsc2UgewoJICByZXMgPSAxOwoJICBzdGQ6OmNvdXQgPDwg
IkMgbG9jYWxlcyBjb21wYXJpc2lvbiBmYWlsZWRcbiI7Cgl9CiAgICAgICAgCglpZiAobm90bWlu
ZSAgPT0gbXlsb2MpIAoJICBzdGQ6OmNvdXQgPDwgIlBhc3NlZFxuIjsKCWVsc2UgewoJICByZXMg
PSAyOwoJICBzdGQ6OmNvdXQgPDwgIkZhaWxlZFxuIjsKCX0KCQogIHJldHVybiByZXM7CiB9Cg==



More information about the Gcc-bugs mailing list