wchar_t c;
int i;
- setlocale(LC_ALL, "");
+ if (! setlocale(LC_ALL, "")) {
+ fprintf(stderr, "setlocale failed, check your LC_ALL, "
+ "LC_CTYPE, and LANG environment variables\n");
+ }
if (argc < 2)
usage(argv[0]);
* at a time.
*/
- mbtowc(NULL, NULL, 0);
+ if (mbtowc(NULL, NULL, 0)) {}
while (charleft > 0) {
int clen;