public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "pthomas at suse dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/12859] New: Output of floating point value changes global lokale
Date: Fri, 31 Oct 2003 16:02:00 -0000	[thread overview]
Message-ID: <20031031155935.12859.pthomas@suse.de> (raw)

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12859

           Summary: Output of floating point value changes global lokale
           Product: gcc
           Version: 3.4
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: libstdc++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pthomas at suse dot de
                CC: aj at suse dot de,gcc-bugs at gcc dot gnu dot org

Putting out a floating point value seems to change the global C locale. Just
compile and run the attached test program and you'll see that the last call
to isalpha returns false instead of the expected true. If you comment out the
line that outputs the fp value, isalpha returns true as expected.

3.3.1 and 3.3.2 also have the same bug that I consider quite nasty and 
unexpected.


             reply	other threads:[~2003-10-31 15:59 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-31 16:02 pthomas at suse dot de [this message]
2003-10-31 16:03 ` [Bug libstdc++/12859] " pthomas at suse dot de
2003-10-31 16:22 ` pthomas at suse dot de
2003-10-31 20:40 ` paolo at gcc dot gnu dot org
2003-10-31 23:12 ` [Bug libstdc++/12859] Output of floating point value changes global locale paolo at gcc dot gnu dot org
2003-11-01  7:26 ` paolo at gcc dot gnu dot org
2003-11-15  7:51 ` jlquinn at gcc dot gnu dot org
2004-04-15 21:41 ` pcarlini at suse dot de
2004-08-23  8:55 ` pcarlini at suse dot de

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20031031155935.12859.pthomas@suse.de \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).