git: regcomp: limit comparison to C locale only

John Marino marino at
Fri Jul 31 06:06:30 PDT 2015

commit cf459965c14d539c708315b65b83926f4d5fa2fb
Author: John Marino <draco at>
Date:   Fri Jul 31 15:00:23 2015 +0200

    regcomp: limit comparison to C locale only
    The regex code does not work with multibyte codesets like UTF-8.  In fact,
    it doesn't even work with single-byte codesets like ISO-8859-1.  The
    comparison blows up at index 128 (the range is 0 to UCHAR_MAX (255).
    As a temporary workaround, all comparisons will be done in C locale
    regardless of the environment setting.  The regex library needs to be
    updated to handle all codesets.

Summary of changes:
 lib/libc/regex/regcomp.c | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

DragonFly BSD source repository

More information about the Commits mailing list