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

John Marino marino at
Thu Oct 6 10:50:20 PDT 2016

commit c93cff25bdae7a0100924c7fd5259cd49581d1c2
Author: John Marino <draco at>
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(-)

DragonFly BSD source repository

More information about the Commits mailing list