* NOT fully functional
*/
+#include "xlocale_private.h"
+
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
const char *sp;
char *dp;
int status = 0;
+ locale_t loc = __current_locale();
/* devour leading white space */
- for(ccp = words; *ccp != 0 && isspace(*ccp); )
+ for(ccp = words; *ccp != 0 && isspace_l(*ccp, loc); )
ccp++;
/* skip comments */
if(*ccp == '#')
if (*sp == 0)
class = EOS;
- else if (isspace(*sp))
+ else if (isspace_l(*sp, loc))
class = SPACE;
else if (*sp == '"')
class = QUOTE;