* src/stdbuf.c: Do not include ctype.h.
(set_libstdbuf_options): Use c_toupper, not toupper,
since the C locale is intended here.
/* Written by Pádraig Brady. */
#include <config.h>
-#include <ctype.h>
#include <stdio.h>
#include <getopt.h>
#include <sys/types.h>
if (*stdbuf[i].optarg == 'L')
ret = asprintf (&var, "%s%c=L", "_STDBUF_",
- toupper (stdbuf[i].optc));
+ c_toupper (stdbuf[i].optc));
else
ret = asprintf (&var, "%s%c=%zu", "_STDBUF_",
- toupper (stdbuf[i].optc),
+ c_toupper (stdbuf[i].optc),
stdbuf[i].size);
if (ret < 0)
xalloc_die ();