public inbox for libc-locales@sourceware.org
 help / color / mirror / Atom feed
* [Bug localedata/14878] gap.awk makes bad conversion tables if   u+0001.. u+0006 not mapped
  2012-11-26 13:58 [Bug localedata/14878] New: gap.awk makes bad conversion tables if u+0001.. u+0006 not mapped john at calva dot com
@ 2012-11-26 13:58 ` john at calva dot com
  2014-06-14 11:04 ` fweimer at redhat dot com
  1 sibling, 0 replies; 3+ messages in thread
From: john at calva dot com @ 2012-11-26 13:58 UTC (permalink / raw)
  To: libc-locales

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

--- Comment #1 from John Hughes <john at calva dot com> 2012-11-26 13:57:48 UTC ---
Created attachment 6754
  --> http://sourceware.org/bugzilla/attachment.cgi?id=6754
patch to gap.awk and gaptab.awk to fix bug

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

* [Bug localedata/14878] New: gap.awk makes bad conversion tables if   u+0001.. u+0006 not mapped
@ 2012-11-26 13:58 john at calva dot com
  2012-11-26 13:58 ` [Bug localedata/14878] " john at calva dot com
  2014-06-14 11:04 ` fweimer at redhat dot com
  0 siblings, 2 replies; 3+ messages in thread
From: john at calva dot com @ 2012-11-26 13:58 UTC (permalink / raw)
  To: libc-locales

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

             Bug #: 14878
           Summary: gap.awk makes bad conversion tables if   u+0001..
                    u+0006 not mapped
           Product: glibc
           Version: 2.17
            Status: NEW
          Severity: normal
          Priority: P2
         Component: localedata
        AssignedTo: unassigned@sourceware.org
        ReportedBy: john@calva.com
                CC: libc-locales@sources.redhat.com
    Classification: Unclassified


Created attachment 6753
  --> http://sourceware.org/bugzilla/attachment.cgi?id=6753
charmap that shows the bug

If a charmap doesn't define a mapping for at least one character in the range
u+0001 to u+0006 then the translation table generated by gap.awk is broken. 
For example with the attached TEST charmap then u+0041 gets mapped to a \4a
instead of \x41.

The bug happens because gap.awk sets "last" (the last codepoint output) to
zero, instead of -1.  A patch to gap.awk and gaptab.awk is attached.

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

* [Bug localedata/14878] gap.awk makes bad conversion tables if   u+0001.. u+0006 not mapped
  2012-11-26 13:58 [Bug localedata/14878] New: gap.awk makes bad conversion tables if u+0001.. u+0006 not mapped john at calva dot com
  2012-11-26 13:58 ` [Bug localedata/14878] " john at calva dot com
@ 2014-06-14 11:04 ` fweimer at redhat dot com
  1 sibling, 0 replies; 3+ messages in thread
From: fweimer at redhat dot com @ 2014-06-14 11:04 UTC (permalink / raw)
  To: libc-locales

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

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

end of thread, other threads:[~2014-06-14 11:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-26 13:58 [Bug localedata/14878] New: gap.awk makes bad conversion tables if u+0001.. u+0006 not mapped john at calva dot com
2012-11-26 13:58 ` [Bug localedata/14878] " john at calva dot com
2014-06-14 11:04 ` 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).