public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/13631] New: Problems in messages
@ 2004-01-09 13:05 peturr02 at ru dot is
  2004-01-09 13:07 ` [Bug libstdc++/13631] " peturr02 at ru dot is
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: peturr02 at ru dot is @ 2004-01-09 13:05 UTC (permalink / raw)
  To: gcc-bugs

The messages facet is broken.

1) The return values of the get member function depend on global state
as set by textdomain() (which is called from messages::do_open()). This
is forbidden by the resolution of DR 360.

2) messages<wchar_t> doesn't work at all (get() always returns the
empty string).

-- 
           Summary: Problems in messages
           Product: gcc
           Version: 3.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: libstdc++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: peturr02 at ru dot is
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


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


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

* [Bug libstdc++/13631] Problems in messages
  2004-01-09 13:05 [Bug libstdc++/13631] New: Problems in messages peturr02 at ru dot is
  2004-01-09 13:07 ` [Bug libstdc++/13631] " peturr02 at ru dot is
@ 2004-01-09 13:07 ` peturr02 at ru dot is
  2004-01-11 10:52 ` paolo at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: peturr02 at ru dot is @ 2004-01-09 13:07 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From peturr02 at ru dot is  2004-01-09 13:07 -------
Created an attachment (id=5444)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=5444&action=view)
Test case


-- 


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


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

* [Bug libstdc++/13631] Problems in messages
  2004-01-09 13:05 [Bug libstdc++/13631] New: Problems in messages peturr02 at ru dot is
@ 2004-01-09 13:07 ` peturr02 at ru dot is
  2004-01-09 13:07 ` peturr02 at ru dot is
                   ` (8 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: peturr02 at ru dot is @ 2004-01-09 13:07 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From peturr02 at ru dot is  2004-01-09 13:07 -------
Created an attachment (id=5443)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=5443&action=view)
Test case

This test case uses message catalogs from KDE as installed on a Red Hat
Linux 9 system.


-- 


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


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

* [Bug libstdc++/13631] Problems in messages
  2004-01-09 13:05 [Bug libstdc++/13631] New: Problems in messages peturr02 at ru dot is
  2004-01-09 13:07 ` [Bug libstdc++/13631] " peturr02 at ru dot is
  2004-01-09 13:07 ` peturr02 at ru dot is
@ 2004-01-11 10:52 ` paolo at gcc dot gnu dot org
  2004-01-13 15:38 ` paolo at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: paolo at gcc dot gnu dot org @ 2004-01-11 10:52 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From paolo at gcc dot gnu dot org  2004-01-11 10:52 -------
It looks like we can at least fix 1) rather easily by using dgettext in
do_get. About 2), _M_convert_from_char is currently completely broken :(...
Let's see what I can do!
Thanks!

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |paolo at gcc dot gnu dot org
                   |dot org                     |
             Status|UNCONFIRMED                 |ASSIGNED
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2004-01-11 10:52:19
               date|                            |


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


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

* [Bug libstdc++/13631] Problems in messages
  2004-01-09 13:05 [Bug libstdc++/13631] New: Problems in messages peturr02 at ru dot is
                   ` (2 preceding siblings ...)
  2004-01-11 10:52 ` paolo at gcc dot gnu dot org
@ 2004-01-13 15:38 ` paolo at gcc dot gnu dot org
  2004-01-13 16:19 ` paolo at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: paolo at gcc dot gnu dot org @ 2004-01-13 15:38 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From paolo at gcc dot gnu dot org  2004-01-13 15:38 -------
I see... I'm not sure that this part can really be fixed in the implementation
relying on gettext, which purposedly adds the extension

  open(const basic_string<char>&, const locale&, const char*)

to specify the message catalog root directory.
Hum...

-- 


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


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

* [Bug libstdc++/13631] Problems in messages
  2004-01-09 13:05 [Bug libstdc++/13631] New: Problems in messages peturr02 at ru dot is
                   ` (3 preceding siblings ...)
  2004-01-13 15:38 ` paolo at gcc dot gnu dot org
@ 2004-01-13 16:19 ` paolo at gcc dot gnu dot org
  2004-01-13 16:36 ` paolo at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: paolo at gcc dot gnu dot org @ 2004-01-13 16:19 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From paolo at gcc dot gnu dot org  2004-01-13 16:19 -------
Ok, sorry, you mean bind_textdomain_codeset not bind_textdomain, I see...

Anyway, testcase 3.cc passes for me, any idea why?

Thanks, Paolo.

-- 


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


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

* [Bug libstdc++/13631] Problems in messages
  2004-01-09 13:05 [Bug libstdc++/13631] New: Problems in messages peturr02 at ru dot is
                   ` (4 preceding siblings ...)
  2004-01-13 16:19 ` paolo at gcc dot gnu dot org
@ 2004-01-13 16:36 ` paolo at gcc dot gnu dot org
  2004-01-14 16:47 ` peturr02 at ru dot is
                   ` (3 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: paolo at gcc dot gnu dot org @ 2004-01-13 16:36 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From paolo at gcc dot gnu dot org  2004-01-13 16:35 -------
... and the first testcase (1.cc) also passes.

-- 


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


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

* [Bug libstdc++/13631] Problems in messages
  2004-01-09 13:05 [Bug libstdc++/13631] New: Problems in messages peturr02 at ru dot is
                   ` (5 preceding siblings ...)
  2004-01-13 16:36 ` paolo at gcc dot gnu dot org
@ 2004-01-14 16:47 ` peturr02 at ru dot is
  2004-01-16 18:15 ` paolo at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: peturr02 at ru dot is @ 2004-01-14 16:47 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From peturr02 at ru dot is  2004-01-14 16:47 -------
> Anyway, testcase 3.cc passes for me, any idea why?
> ... and the first testcase (1.cc) also passes.

Maybe you don't have the message catalogs installed?
You can check if this is the case by looking at the return value of get().
If it returns dfault (the last argument), then the message catalog is
missing.

On my system (Fedora Core 1) they are stored in
/usr/share/locale/is/LC_MESSAGES and come from a package named
kde-i18n-Icelandic


-- 


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


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

* [Bug libstdc++/13631] Problems in messages
  2004-01-09 13:05 [Bug libstdc++/13631] New: Problems in messages peturr02 at ru dot is
                   ` (6 preceding siblings ...)
  2004-01-14 16:47 ` peturr02 at ru dot is
@ 2004-01-16 18:15 ` paolo at gcc dot gnu dot org
  2004-01-19 11:44 ` peturr02 at ru dot is
  2004-09-17 21:16 ` pcarlini at suse dot de
  9 siblings, 0 replies; 11+ messages in thread
From: paolo at gcc dot gnu dot org @ 2004-01-16 18:15 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From paolo at gcc dot gnu dot org  2004-01-16 18:15 -------
Update: honestly, I can't see how the issue with bind_textdomain_codeset
can be fixed in the 'gettext' framework, probably a case of WONTFIX. Does this
imply that eventually the GNU implementation should be that based on 'catgets'??

Bind_textdomain can be easily avoided in do_open and _M_convert_from_char
implemented, I can work on that.

-- 


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


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

* [Bug libstdc++/13631] Problems in messages
  2004-01-09 13:05 [Bug libstdc++/13631] New: Problems in messages peturr02 at ru dot is
                   ` (7 preceding siblings ...)
  2004-01-16 18:15 ` paolo at gcc dot gnu dot org
@ 2004-01-19 11:44 ` peturr02 at ru dot is
  2004-09-17 21:16 ` pcarlini at suse dot de
  9 siblings, 0 replies; 11+ messages in thread
From: peturr02 at ru dot is @ 2004-01-19 11:44 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From peturr02 at ru dot is  2004-01-19 11:43 -------
> Update: honestly, I can't see how the issue with bind_textdomain_codeset
> can be fixed in the 'gettext' framework, probably a case of WONTFIX.

Note that this problem is solvable: In the worst case, libintl needs to
be bypassed and message needs to read the message catalogs directly.
Another solution would be to include libintl in libstdc++ and rename
all exported functions and global variables, so messages wouldn't share
any state with gettext. This would have the additional benefit that
only a single implementation (based on gettext) could be used on all
platforms.



-- 


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


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

* [Bug libstdc++/13631] Problems in messages
  2004-01-09 13:05 [Bug libstdc++/13631] New: Problems in messages peturr02 at ru dot is
                   ` (8 preceding siblings ...)
  2004-01-19 11:44 ` peturr02 at ru dot is
@ 2004-09-17 21:16 ` pcarlini at suse dot de
  9 siblings, 0 replies; 11+ messages in thread
From: pcarlini at suse dot de @ 2004-09-17 21:16 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|pcarlini at suse dot de     |unassigned at gcc dot gnu
                   |                            |dot org
             Status|ASSIGNED                    |NEW


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


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

end of thread, other threads:[~2004-09-17 21:16 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-01-09 13:05 [Bug libstdc++/13631] New: Problems in messages peturr02 at ru dot is
2004-01-09 13:07 ` [Bug libstdc++/13631] " peturr02 at ru dot is
2004-01-09 13:07 ` peturr02 at ru dot is
2004-01-11 10:52 ` paolo at gcc dot gnu dot org
2004-01-13 15:38 ` paolo at gcc dot gnu dot org
2004-01-13 16:19 ` paolo at gcc dot gnu dot org
2004-01-13 16:36 ` paolo at gcc dot gnu dot org
2004-01-14 16:47 ` peturr02 at ru dot is
2004-01-16 18:15 ` paolo at gcc dot gnu dot org
2004-01-19 11:44 ` peturr02 at ru dot is
2004-09-17 21:16 ` pcarlini at suse dot de

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).