public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: libstdc++/8539: 22_locale
@ 2002-11-20 17:52 paolo
  0 siblings, 0 replies; 4+ messages in thread
From: paolo @ 2002-11-20 17:52 UTC (permalink / raw)
  To: dmitry_belous, gcc-bugs, gcc-prs, nobody

Synopsis: 22_locale

State-Changed-From-To: open->closed
State-Changed-By: paolo
State-Changed-When: Thu Nov 14 04:56:42 2002
State-Changed-Why:
    Current 3.2.1 pre and 3.3 exp are Ok and the problem cannot
    be reproduced:
    paolo:~/Gcc/PRs/v3/Analyzed> g++ 8539.cc
    paolo:~/Gcc/PRs/v3/Analyzed> a.out
    locale not found
    Thanks for your report, Paolo.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8539


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: libstdc++/8539: 22_locale
@ 2002-11-20 18:10 bkoz
  0 siblings, 0 replies; 4+ messages in thread
From: bkoz @ 2002-11-20 18:10 UTC (permalink / raw)
  To: dmitry_belous, gcc-bugs, gcc-prs, nobody

Synopsis: 22_locale

State-Changed-From-To: feedback->closed
State-Changed-By: bkoz
State-Changed-When: Thu Nov 14 10:16:41 2002
State-Changed-Why:
    QOI,not a bug.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8539


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: libstdc++/8539: 22_locale
@ 2002-11-20 18:09 bkoz
  0 siblings, 0 replies; 4+ messages in thread
From: bkoz @ 2002-11-20 18:09 UTC (permalink / raw)
  To: dmitry_belous, gcc-bugs, gcc-prs, nobody

Synopsis: 22_locale

State-Changed-From-To: closed->feedback
State-Changed-By: bkoz
State-Changed-When: Thu Nov 14 10:14:54 2002
State-Changed-Why:
    Paolo, a bit of a clarification.
    
    This issue cannot be reproduced on linux, because it uses the gnu locale model that actually implements named locales. For other configurations, namely cygwin, a different configuration is used, ie the generic config. In this configuration, the bug can be reproduced.
    
    The generic config does not attempt to create accurate named locales and instead all "named locales" use the "C" locale. Because of this, attempts to create fake or non-existent named locales (as in the test case) will "succeed" in that they are created (but contain only "C" locale info.)
    
    This is a QOI issue, but not a bug. The standard allows implementation-defined behavior on this point: the generic locale model's defined behavior is to allow it.
    
    Funding to implement a more useful generic locale model is not forthcoming. Patches to implement it have also not been forthcoming. When either of these change, the generic locale model will be more interesting.
    
    -benjamin

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8539


^ permalink raw reply	[flat|nested] 4+ messages in thread

* libstdc++/8539: 22_locale
@ 2002-11-19 13:25 dmitry_belous
  0 siblings, 0 replies; 4+ messages in thread
From: dmitry_belous @ 2002-11-19 13:25 UTC (permalink / raw)
  To: gcc-gnats


>Number:         8539
>Category:       libstdc++
>Synopsis:       22_locale
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Nov 12 00:36:05 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Dmitry Belous
>Release:        gcc (GCC) 3.2 20020818 (prerelease)
>Organization:
>Environment:
System: W2K
Architecture: i686
host: i686-pc-cygwin
build: i686-pc-cygwin
target: i686-pc-cygwin

>Description:
Constructor `explicit locale(const char* std_name);' is
contrary to standard. Source documentation
`22 - Localization library [lib.localization]',
section 22.1.1.2 (6-8).
For example, running the following program tnum should
print: "locale not found"
>How-To-Repeat:
#include <locale>
#include <iostream>
int main()
{
	using namespace std;
	const char* locname = "asdfghjkl;'";
	try {
		locale loc = locale(locname);
	} catch (...) {
		cerr << "locale not found" << endl;
		return(1);
	}
	cerr << "locale found" << endl;
	return(0);
}

g++ -v -o tnum tnum.C -W -Wall -g
Reading specs from /usr/lib/gcc-lib/i686-pc-cygwin/3.2/specs
Configured with: /netrel/src/gcc-3.2-1/configure --enable-languages=c,c++,f77,java --enable-libgcj --enable-threads=posix --with-system-zlib --enable-nls --without-included-gettext --enable-interpreter --disable-sjlj-exceptions --disable-version-specific-runtime-libs --enable-shared --build=i686-pc-linux --host=i686-pc-cygwin --target=i686-pc-cygwin --enable-haifa --prefix=/usr --exec-prefix=/usr --sysconfdir=/etc --libdir=/usr/lib --includedir=/nonexistent/include --libexecdir=/usr/sbin
Thread model: posix
gcc version 3.2 20020818 (prerelease)
 /usr/lib/gcc-lib/i686-pc-cygwin/3.2/cc1plus.exe -v -D__GNUC__=3 -D__GNUC_MINOR__=2 -D__GNUC_PATCHLEVEL__=0 -D__GXX_ABI_VERSION=102 -D_X86_=1 -D_X86_=1 -Asystem=winnt -D__NO_INLINE__ -D__STDC_HOSTED__=1 -Acpu=i386 -Amachine=i386 -Di386 -D__i386 -D__i386__ -D__tune_i686__ -D__tune_pentiumpro__ -D__tune_pentium2__ -D__tune_pentium3__ -D__stdcall=__attribute__((__stdcall__)) -D__fastcall=__attribute__((__fastcall__)) -D__cdecl=__attribute__((__cdecl__)) -D_stdcall=__attribute__((__stdcall__)) -D_fastcall=__attribute__((__fastcall__)) -D_cdecl=__attribute__((__cdecl__)) -D__declspec(x)=__attribute__((x)) -D__i386__ -D__i386 -D__CYGWIN32__ -D__CYGWIN__ -Dunix -D__unix__ -D__unix -isystem /usr/lib/gcc-lib/i686-pc-cygwin/3.2/../../../../include/w32api -isystem /usr/local/lib/../../include/w32api locale.cpp -D__GNUG__=3 -D__DEPRECATED -D__EXCEPTIONS -quiet -dumpbase locale.cpp -g -W -Wall -version -o /tmp/ccZwaqij.s
GNU CPP version 3.2 20020818 (prerelease) (cpplib) (80386, BSD syntax)
GNU C++ version 3.2 20020818 (prerelease) (i686-pc-cygwin)
	compiled by GNU C version 3.2 20020815 (prerelease).
ignoring nonexistent directory "/usr/i686-pc-cygwin/include"
ignoring duplicate directory "/usr/include/w32api"
#include "..." search starts here:
#include <...> search starts here:
 .
 /usr/include/libxml2
 /usr/include/w32api
 /usr/include/c++/3.2
 /usr/include/c++/3.2/i686-pc-cygwin
 /usr/include/c++/3.2/backward
 /usr/local/include
 /usr/lib/gcc-lib/i686-pc-cygwin/3.2/include
 /usr/include
End of search list.
 /usr/lib/gcc-lib/i686-pc-cygwin/3.2/../../../../i686-pc-cygwin/bin/as.exe --traditional-format -o /tmp/cc9BeFh0.o /tmp/ccZwaqij.s
 /usr/lib/gcc-lib/i686-pc-cygwin/3.2/collect2.exe -Bdynamic --dll-search-prefix=cyg -o locale.exe /usr/lib/gcc-lib/i686-pc-cygwin/3.2/../../../crt0.o /usr/lib/gcc-lib/i686-pc-cygwin/3.2/crtbegin.o -L. -L/home/oracle/ora81/jdbc/lib -L/home/oracle/ora81/lib -L/usr/local/lib -L/usr/lib/gcc-lib/i686-pc-cygwin/3.2 -L/usr/lib/gcc-lib/i686-pc-cygwin/3.2/../../.. /tmp/cc9BeFh0.o -lstdc++ -lgcc -lcygwin -luser32 -lkernel32 -ladvapi32 -lshell32 -lgcc /usr/lib/gcc-lib/i686-pc-cygwin/3.2/crtend.o
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2002-11-14 18:16 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-11-20 17:52 libstdc++/8539: 22_locale paolo
  -- strict thread matches above, loose matches on Subject: below --
2002-11-20 18:10 bkoz
2002-11-20 18:09 bkoz
2002-11-19 13:25 dmitry_belous

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).