From 4be93bbd9546fb9f0155841935f0ed0d40f85a73 Mon Sep 17 00:00:00 2001 From: Szabolcs Nagy Date: Sat, 13 Jun 2015 20:50:53 +0000 Subject: [PATCH] setlocale C.UTF-8 in regex test that depends on UTF-8 --- src/regression/regex-escaped-high-byte.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/regression/regex-escaped-high-byte.c b/src/regression/regex-escaped-high-byte.c index 7a29489..70a8d44 100644 --- a/src/regression/regex-escaped-high-byte.c +++ b/src/regression/regex-escaped-high-byte.c @@ -1,5 +1,6 @@ // commit 39dfd58417ef642307d90306e1c7e50aaec5a35c 2015-03-20 // backslash followed by high byte should be parsed as a normal sequence +#include #include #include "test.h" @@ -9,6 +10,8 @@ int main(void) regex_t r; int n; + setlocale(LC_CTYPE, "C.UTF-8"); + // illegal sequence (not U+00FC) n = regcomp(&r, "\\\xfc", 0); if (n != REG_BADPAT) { -- 2.11.4.GIT