git: localedef: Fix ctype dump (fixed wide spread errors)

John Marino marino at crater.dragonflybsd.org
Thu Oct 6 10:27:05 PDT 2016


commit 07ed7d329a83714ec268e2f3ce026bba5a1ac5c2
Author: John Marino <draco at marino.st>
Date:   Thu Oct 6 10:37:06 2016 -0500

    localedef: Fix ctype dump (fixed wide spread errors)
    
    This was a CTYPE encoding error involving consecutive points of the same
    ctype.  It was reported by myself to Illumos over a year ago but I was
    unsure if it was only happening on BSD.  Given the cause, the bug is also
    present on Illumos.
    
    Basically, if consecutive points were of the exact same ctype, they would
    be defined as a range regardless.  For example, all of these would be
    considered equivalent:
    
      <A> ... <C>, <H>  (converts to <A> .. <H>)
      <A>, <B>, <H>     (converts to <A> .. <H>)
      <A>, <J> ... <H>  (converts to <A> .. <H>)
    
    So all the points that shouldn't have been defined got "bridged" by the
    extreme points.
    
    The effects were recently reported to FreeBSD on PR 213013.  There are
    countless places were the ctype flags are misdefined, so this is a major
    fix that has to be MFC'd.

Summary of changes:
 usr.bin/localedef/ctype.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/07ed7d329a83714ec268e2f3ce026bba5a1ac5c2


-- 
DragonFly BSD source repository



More information about the Commits mailing list