public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/13140] New: no-break space as thousands_sep causes inconsistent output
@ 2011-08-30  7:48 myllynen at redhat dot com
  2011-09-05 17:02 ` [Bug libc/13140] " drepper.fsp at gmail dot com
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: myllynen at redhat dot com @ 2011-08-30  7:48 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=13140

             Bug #: 13140
           Summary: no-break space as thousands_sep causes inconsistent
                    output
           Product: glibc
           Version: 2.14
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
        AssignedTo: drepper.fsp@gmail.com
        ReportedBy: myllynen@redhat.com
    Classification: Unclassified


localhost:~> cat test-grouping.c 
#include <locale.h>
#include <stdio.h>
#include <stdlib.h>

int main(int argc, char **argv)
{
  if (setlocale(LC_ALL, argv[1]) == NULL)
    exit(EXIT_FAILURE);
  printf("%s:%'9d\n", argv[1], 123456);
  exit(EXIT_SUCCESS);
}
localhost:~> gcc test-grouping.c 
localhost:~> for l in en_US de_DE fi_FI ; do ./a.out $l.UTF-8 ; done
en_US.UTF-8:  123,456
de_DE.UTF-8:  123.456
fi_FI.UTF-8: 123 456

I think the expected output would be:

en_US.UTF-8:  123,456
de_DE.UTF-8:  123.456
fi_FI.UTF-8:  123 456

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

* [Bug libc/13140] no-break space as thousands_sep causes inconsistent output
  2011-08-30  7:48 [Bug libc/13140] New: no-break space as thousands_sep causes inconsistent output myllynen at redhat dot com
@ 2011-09-05 17:02 ` drepper.fsp at gmail dot com
  2012-04-16  8:28 ` myllynen at redhat dot com
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: drepper.fsp at gmail dot com @ 2011-09-05 17:02 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=13140

Ulrich Drepper <drepper.fsp at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID

--- Comment #1 from Ulrich Drepper <drepper.fsp at gmail dot com> 2011-09-05 17:01:40 UTC ---
The width specification specifies the number of bytes, not screen columns.

Aside, the narrow stream functions have no idea what the encoding is.  It's a
sequence of bytes and if two bytes take only one column that's simply not
known.  There is nothing which can be done at this level.

If you want aligned output in all cases you have to do the legwork yourself.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

* [Bug libc/13140] no-break space as thousands_sep causes inconsistent output
  2011-08-30  7:48 [Bug libc/13140] New: no-break space as thousands_sep causes inconsistent output myllynen at redhat dot com
  2011-09-05 17:02 ` [Bug libc/13140] " drepper.fsp at gmail dot com
@ 2012-04-16  8:28 ` myllynen at redhat dot com
  2013-06-17 14:09 ` myllynen at redhat dot com
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: myllynen at redhat dot com @ 2012-04-16  8:28 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=13140

Marko Myllynen <myllynen at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
            Version|2.14                        |unspecified
         Resolution|INVALID                     |
         AssignedTo|drepper.fsp at gmail dot    |unassigned at sourceware
                   |com                         |dot org

--- Comment #2 from Marko Myllynen <myllynen at redhat dot com> 2012-04-16 08:27:39 UTC ---
Reopening in case the needed legwork could be considered as a task for upcoming
releases.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

* [Bug libc/13140] no-break space as thousands_sep causes inconsistent output
  2011-08-30  7:48 [Bug libc/13140] New: no-break space as thousands_sep causes inconsistent output myllynen at redhat dot com
  2011-09-05 17:02 ` [Bug libc/13140] " drepper.fsp at gmail dot com
  2012-04-16  8:28 ` myllynen at redhat dot com
@ 2013-06-17 14:09 ` myllynen at redhat dot com
  2013-10-09  8:20 ` myllynen at redhat dot com
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: myllynen at redhat dot com @ 2013-06-17 14:09 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=13140

Marko Myllynen <myllynen at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|unspecified                 |2.18

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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

* [Bug libc/13140] no-break space as thousands_sep causes inconsistent output
  2011-08-30  7:48 [Bug libc/13140] New: no-break space as thousands_sep causes inconsistent output myllynen at redhat dot com
                   ` (2 preceding siblings ...)
  2013-06-17 14:09 ` myllynen at redhat dot com
@ 2013-10-09  8:20 ` myllynen at redhat dot com
  2013-10-15 13:39 ` myllynen at redhat dot com
  2014-06-27 12:12 ` fweimer at redhat dot com
  5 siblings, 0 replies; 7+ messages in thread
From: myllynen at redhat dot com @ 2013-10-09  8:20 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=13140

Marko Myllynen <myllynen at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |NEW

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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

* [Bug libc/13140] no-break space as thousands_sep causes inconsistent output
  2011-08-30  7:48 [Bug libc/13140] New: no-break space as thousands_sep causes inconsistent output myllynen at redhat dot com
                   ` (3 preceding siblings ...)
  2013-10-09  8:20 ` myllynen at redhat dot com
@ 2013-10-15 13:39 ` myllynen at redhat dot com
  2014-06-27 12:12 ` fweimer at redhat dot com
  5 siblings, 0 replies; 7+ messages in thread
From: myllynen at redhat dot com @ 2013-10-15 13:39 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=13140

Marko Myllynen <myllynen at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |INVALID

--- Comment #4 from Marko Myllynen <myllynen at redhat dot com> ---
Hi Rich,

thanks for the clarification, much appreciated, seems that indeed the right
thing to do here is just to close this one.

Thanks.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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

* [Bug libc/13140] no-break space as thousands_sep causes inconsistent output
  2011-08-30  7:48 [Bug libc/13140] New: no-break space as thousands_sep causes inconsistent output myllynen at redhat dot com
                   ` (4 preceding siblings ...)
  2013-10-15 13:39 ` myllynen at redhat dot com
@ 2014-06-27 12:12 ` fweimer at redhat dot com
  5 siblings, 0 replies; 7+ messages in thread
From: fweimer at redhat dot com @ 2014-06-27 12:12 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=13140

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
              Flags|                            |security-

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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

end of thread, other threads:[~2014-06-27 12:12 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-30  7:48 [Bug libc/13140] New: no-break space as thousands_sep causes inconsistent output myllynen at redhat dot com
2011-09-05 17:02 ` [Bug libc/13140] " drepper.fsp at gmail dot com
2012-04-16  8:28 ` myllynen at redhat dot com
2013-06-17 14:09 ` myllynen at redhat dot com
2013-10-09  8:20 ` myllynen at redhat dot com
2013-10-15 13:39 ` myllynen at redhat dot com
2014-06-27 12:12 ` fweimer at redhat dot com

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