public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug localedata/12814] New: ISO-2022-JP-2 conversion of U+20AC gives strange result
@ 2011-05-27  8:28 glibcbugz at ghalkes dot nl
  2011-05-28 12:12 ` [Bug localedata/12814] " drepper.fsp at gmail dot com
  2014-06-27 13:15 ` fweimer at redhat dot com
  0 siblings, 2 replies; 3+ messages in thread
From: glibcbugz at ghalkes dot nl @ 2011-05-27  8:28 UTC (permalink / raw)
  To: glibc-bugs

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

           Summary: ISO-2022-JP-2 conversion of U+20AC gives strange
                    result
           Product: glibc
           Version: 2.13
            Status: NEW
          Severity: normal
          Priority: P2
         Component: localedata
        AssignedTo: libc-locales@sources.redhat.com
        ReportedBy: glibcbugz@ghalkes.nl


When trying to convert U+20AC (EURO SIGN) to ISO-2022-JP I get the following
sequence of bytes: 1B 2E 46 1B 4E A4 1B 24 28 43 22 66 1B 28 42. This is not
correct. The correct sequence is either 1B 2E 46 1B 4E 24 (which is equal to
the first part of the returned sequence with the caveat that the last byte has
its high bit reset), or 1B 24 28 43 22 66 1B 28 42 (the second part of the
returned sequence).

The first sequence uses the ISO-8859-7 set to encode the Euro sign, while the
second sequence uses the KSC 5601 set. Either would be correct (although
strictly speaking neither is, because the officially mandated sets are the
versions before the Euro update).

-- 
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] 3+ messages in thread

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

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-27  8:28 [Bug localedata/12814] New: ISO-2022-JP-2 conversion of U+20AC gives strange result glibcbugz at ghalkes dot nl
2011-05-28 12:12 ` [Bug localedata/12814] " drepper.fsp at gmail dot com
2014-06-27 13:15 ` 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).