Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 382687
Collapse All | Expand All

(-)src/main/util.c (-1 / +2 lines)
Lines 25-30 Link Here
25
25
26
#include <Defn.h>
26
#include <Defn.h>
27
#include <ctype.h>		/* for isspace */
27
#include <ctype.h>		/* for isspace */
28
#include <pcre.h>
28
29
29
#undef COMPILING_R
30
#undef COMPILING_R
30
31
Lines 1260-1266 Link Here
1260
1261
1261
Rboolean utf8Valid(const char *str)
1262
Rboolean utf8Valid(const char *str)
1262
{
1263
{
1263
    return  (_pcre_valid_utf8(str, strlen(str)) < 0);
1264
    return  (_pcre_valid_utf8(str, strlen(str))==PCRE_UTF8_ERR0);
1264
}
1265
}
1265
1266
1266
1267

Return to bug 382687