mbchar.c (local_mb_cur_max): Handle the case where MB_CUR_MAX is 0.

Wed Feb 10 13:59:18 1999  Dave Brolley  <brolley@cygnus.com>
	* mbchar.c (local_mb_cur_max): Handle the case where MB_CUR_MAX is 0.

From-SVN: r25129
This commit is contained in:
Dave Brolley 1999-02-10 11:00:12 +00:00 committed by Dave Brolley
parent 00aeceec1b
commit 4d2a3f76f2
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,7 @@
Wed Feb 10 13:59:18 1999 Dave Brolley <brolley@cygnus.com>
* mbchar.c (local_mb_cur_max): Handle the case where MB_CUR_MAX is 0.
Wed Feb 10 10:35:05 1999 Jim Wilson <wilson@cygnus.com>
* tmp-emsgids.c: Delete.

View File

@ -281,7 +281,10 @@ local_mb_cur_max ()
#ifdef CROSS_COMPILE
return 1;
#else
return MB_CUR_MAX;
if (MB_CUR_MAX > 0)
return MB_CUR_MAX;
return 1; /* default */
#endif
}
#endif /* MULTIBYTE_CHARS */