@@ -390,7 +390,7 @@ getNextFlagFromString(IspellDict *Conf, const char **sflagset, char *sflag)
390390* sflagset = next ;
391391while (* * sflagset )
392392{
393- if (t_isdigit ( * sflagset ))
393+ if (isdigit (( unsigned char ) * * sflagset ))
394394{
395395if (!met_comma )
396396ereport (ERROR ,
@@ -408,7 +408,7 @@ getNextFlagFromString(IspellDict *Conf, const char **sflagset, char *sflag)
408408* sflagset )));
409409met_comma = true;
410410}
411- else if (!t_isspace ( * sflagset ))
411+ else if (!isspace (( unsigned char ) * * sflagset ))
412412{
413413ereport (ERROR ,
414414(errcode (ERRCODE_CONFIG_FILE_ERROR ),
@@ -542,7 +542,7 @@ NIImportDictionary(IspellDict *Conf, const char *filename)
542542while (* s )
543543{
544544/* we allow only single encoded flags for faster works */
545- if (pg_mblen (s )== 1 && t_isprint ( s )&& !t_isspace ( s ))
545+ if (pg_mblen (s )== 1 && isprint (( unsigned char ) * s )&& !isspace (( unsigned char ) * s ))
546546s ++ ;
547547else
548548{
@@ -558,7 +558,7 @@ NIImportDictionary(IspellDict *Conf, const char *filename)
558558s = line ;
559559while (* s )
560560{
561- if (t_isspace ( s ))
561+ if (isspace (( unsigned char ) * s ))
562562{
563563* s = '\0' ;
564564break ;
@@ -799,7 +799,7 @@ get_nextfield(char **str, char *next)
799799{
800800if (t_iseq (* str ,'#' ))
801801return false;
802- else if (!t_isspace ( * str ))
802+ else if (!isspace (( unsigned char ) * * str ))
803803{
804804int clen = pg_mblen (* str );
805805
@@ -814,7 +814,7 @@ get_nextfield(char **str, char *next)
814814}
815815else /* state == PAE_INMASK */
816816{
817- if (t_isspace ( * str ))
817+ if (isspace (( unsigned char ) * * str ))
818818{
819819* next = '\0' ;
820820return true;
@@ -925,7 +925,7 @@ parse_affentry(char *str, char *mask, char *find, char *repl)
925925{
926926if (t_iseq (str ,'#' ))
927927return false;
928- else if (!t_isspace ( str ))
928+ else if (!isspace (( unsigned char ) * str ))
929929{
930930COPYCHAR (pmask ,str );
931931pmask += pg_mblen (str );
@@ -939,7 +939,7 @@ parse_affentry(char *str, char *mask, char *find, char *repl)
939939* pmask = '\0' ;
940940state = PAE_WAIT_FIND ;
941941}
942- else if (!t_isspace ( str ))
942+ else if (!isspace (( unsigned char ) * str ))
943943{
944944COPYCHAR (pmask ,str );
945945pmask += pg_mblen (str );
@@ -957,7 +957,7 @@ parse_affentry(char *str, char *mask, char *find, char *repl)
957957prepl += pg_mblen (str );
958958state = PAE_INREPL ;
959959}
960- else if (!t_isspace ( str ))
960+ else if (!isspace (( unsigned char ) * str ))
961961ereport (ERROR ,
962962(errcode (ERRCODE_CONFIG_FILE_ERROR ),
963963errmsg ("syntax error" )));
@@ -974,7 +974,7 @@ parse_affentry(char *str, char *mask, char *find, char *repl)
974974COPYCHAR (pfind ,str );
975975pfind += pg_mblen (str );
976976}
977- else if (!t_isspace ( str ))
977+ else if (!isspace (( unsigned char ) * str ))
978978ereport (ERROR ,
979979(errcode (ERRCODE_CONFIG_FILE_ERROR ),
980980errmsg ("syntax error" )));
@@ -991,7 +991,7 @@ parse_affentry(char *str, char *mask, char *find, char *repl)
991991prepl += pg_mblen (str );
992992state = PAE_INREPL ;
993993}
994- else if (!t_isspace ( str ))
994+ else if (!isspace (( unsigned char ) * str ))
995995ereport (ERROR ,
996996(errcode (ERRCODE_CONFIG_FILE_ERROR ),
997997errmsg ("syntax error" )));
@@ -1008,7 +1008,7 @@ parse_affentry(char *str, char *mask, char *find, char *repl)
10081008COPYCHAR (prepl ,str );
10091009prepl += pg_mblen (str );
10101010}
1011- else if (!t_isspace ( str ))
1011+ else if (!isspace (( unsigned char ) * str ))
10121012ereport (ERROR ,
10131013(errcode (ERRCODE_CONFIG_FILE_ERROR ),
10141014errmsg ("syntax error" )));
@@ -1070,7 +1070,7 @@ addCompoundAffixFlagValue(IspellDict *Conf, char *s, uint32 val)
10701070char * sflag ;
10711071int clen ;
10721072
1073- while (* s && t_isspace ( s ))
1073+ while (* s && isspace (( unsigned char ) * s ))
10741074s += pg_mblen (s );
10751075
10761076if (!* s )
@@ -1080,7 +1080,7 @@ addCompoundAffixFlagValue(IspellDict *Conf, char *s, uint32 val)
10801080
10811081/* Get flag without \n */
10821082sflag = sbuf ;
1083- while (* s && !t_isspace ( s )&& * s != '\n' )
1083+ while (* s && !isspace (( unsigned char ) * s )&& * s != '\n' )
10841084{
10851085clen = pg_mblen (s );
10861086COPYCHAR (sflag ,s );
@@ -1225,7 +1225,7 @@ NIImportOOAffixes(IspellDict *Conf, const char *filename)
12251225
12261226while ((recoded = tsearch_readline (& trst ))!= NULL )
12271227{
1228- if (* recoded == '\0' || t_isspace ( recoded )|| t_iseq (recoded ,'#' ))
1228+ if (* recoded == '\0' || isspace (( unsigned char ) * recoded )|| t_iseq (recoded ,'#' ))
12291229{
12301230pfree (recoded );
12311231continue ;
@@ -1262,7 +1262,7 @@ NIImportOOAffixes(IspellDict *Conf, const char *filename)
12621262{
12631263char * s = recoded + strlen ("FLAG" );
12641264
1265- while (* s && t_isspace ( s ))
1265+ while (* s && isspace (( unsigned char ) * s ))
12661266s += pg_mblen (s );
12671267
12681268if (* s )
@@ -1298,7 +1298,7 @@ NIImportOOAffixes(IspellDict *Conf, const char *filename)
12981298{
12991299int fields_read ;
13001300
1301- if (* recoded == '\0' || t_isspace ( recoded )|| t_iseq (recoded ,'#' ))
1301+ if (* recoded == '\0' || isspace (( unsigned char ) * recoded )|| t_iseq (recoded ,'#' ))
13021302gotonextline ;
13031303
13041304fields_read = parse_ooaffentry (recoded ,type ,sflag ,find ,repl ,mask );
@@ -1461,9 +1461,9 @@ NIImportAffixes(IspellDict *Conf, const char *filename)
14611461s = findchar2 (recoded ,'l' ,'L' );
14621462if (s )
14631463{
1464- while (* s && !t_isspace ( s ))
1464+ while (* s && !isspace (( unsigned char ) * s ))
14651465s += pg_mblen (s );
1466- while (* s && t_isspace ( s ))
1466+ while (* s && isspace (( unsigned char ) * s ))
14671467s += pg_mblen (s );
14681468
14691469if (* s && pg_mblen (s )== 1 )
@@ -1494,7 +1494,7 @@ NIImportAffixes(IspellDict *Conf, const char *filename)
14941494s = recoded + 4 ;/* we need non-lowercased string */
14951495flagflags = 0 ;
14961496
1497- while (* s && t_isspace ( s ))
1497+ while (* s && isspace (( unsigned char ) * s ))
14981498s += pg_mblen (s );
14991499
15001500if (* s == '*' )
@@ -1523,7 +1523,7 @@ NIImportAffixes(IspellDict *Conf, const char *filename)
15231523
15241524s ++ ;
15251525if (* s == '\0' || * s == '#' || * s == '\n' || * s == ':' ||
1526- t_isspace ( s ))
1526+ isspace (( unsigned char ) * s ))
15271527{
15281528oldformat = true;
15291529gotonextline ;
@@ -1750,7 +1750,7 @@ NISortDictionary(IspellDict *Conf)
17501750(errcode (ERRCODE_CONFIG_FILE_ERROR ),
17511751errmsg ("invalid affix alias \"%s\"" ,
17521752Conf -> Spell [i ]-> p .flag )));
1753- if (* end != '\0' && !t_isdigit ( end )&& !t_isspace ( end ))
1753+ if (* end != '\0' && !isdigit (( unsigned char ) * end )&& !isspace (( unsigned char ) * end ))
17541754ereport (ERROR ,
17551755(errcode (ERRCODE_CONFIG_FILE_ERROR ),
17561756errmsg ("invalid affix alias \"%s\"" ,