Commit 08690b68 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(legal_name): Handle parameter "Force ISO 8859-1".

	Always force 8859-1 unless HAVE_LOCALE_H.
parent 95007966
/* /*
* $Id: conference.c,v 0.26 1994/10/22 12:06:48 ceder Exp $ * $Id: conference.c,v 0.27 1994/10/23 16:12:56 ceder Exp $
* Copyright (C) 1991, 1992, 1993, 1994 Lysator Academic Computer Association. * Copyright (C) 1991, 1992, 1993, 1994 Lysator Academic Computer Association.
* *
* This file is part of the LysKOM server. * This file is part of the LysKOM server.
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
* All atomic calls that deals with conferences. * All atomic calls that deals with conferences.
*/ */
static char *rcsid = "$Id: conference.c,v 0.26 1994/10/22 12:06:48 ceder Exp $"; static char *rcsid = "$Id: conference.c,v 0.27 1994/10/23 16:12:56 ceder Exp $";
#include "rcs.h" #include "rcs.h"
USE(rcsid); USE(rcsid);
...@@ -149,12 +149,23 @@ legal_name( String name ) ...@@ -149,12 +149,23 @@ legal_name( String name )
while( name.len-- ) while( name.len-- )
{ {
if ( /* !isascii(*name.string) && */ #ifdef HAVE_LOCALE_H
!isprint( *name.string ) ) if (param.force_iso_8859_1
? (*name.string < ' ' ||
(*name.string > 126 && *name.string < ' ' + 128))
: !isprint(*name.string))
{ {
kom_errno = KOM_BAD_NAME; kom_errno = KOM_BAD_NAME;
return FALSE; return FALSE;
} }
#else
if (*name.string < ' ' ||
(*name.string > 126 && *name.string < ' ' + 128))
{
kom_errno = KOM_BAD_NAME;
return FALSE;
}
#endif
name.string++; 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