Commit cb1c62a3 authored by Peter Eriksson's avatar Peter Eriksson
Browse files

If not USE_ASCII defined, only check for < ' ' and 127 in valid_name()

parent 051d58a2
......@@ -107,12 +107,15 @@ legal_name( String name )
while( name.len-- )
{
if ( /* !isascii(*name.string) && */
!isprint( *name.string )
/*???|| *name.string == '"'*/ )
#ifdef USE_ASCII
if ( !isascii(*name.string) && !isprint( *name.string ) )
{
return FALSE;
}
#else /* Allow ISO 8859-1 */
if (*name.string < ' ' || *name.string == 127)
return FALSE;
#endif
name.string++;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment