Allow characters >127 that don't fit the current locale in the
specfile (e.g. latin1 in utf-8 locale). Patch from OpenSuSE.
This commit is contained in:
parent
2045bd1814
commit
f32c97f621
5
build.c
5
build.c
|
@ -87,8 +87,13 @@ static int isSpecFile(const char * specfile)
|
||||||
/*@switchbreak@*/ break;
|
/*@switchbreak@*/ break;
|
||||||
/*@-boundsread@*/
|
/*@-boundsread@*/
|
||||||
default:
|
default:
|
||||||
|
#if 0
|
||||||
if (checking && !(isprint(*s) || isspace(*s))) return 0;
|
if (checking && !(isprint(*s) || isspace(*s))) return 0;
|
||||||
/*@switchbreak@*/ break;
|
/*@switchbreak@*/ break;
|
||||||
|
#else
|
||||||
|
if (checking && !(isprint(*s) || isspace(*s)) && *(unsigned char *)s < 32) return 0;
|
||||||
|
/*@switchbreak@*/ break;
|
||||||
|
#endif
|
||||||
/*@=boundsread@*/
|
/*@=boundsread@*/
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue