X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/blobdiff_plain/2e9ba080dd30434f3e8f88e63029280889586a32..802bb5963b7883e640a87a11dcd7a81bf811a076:/cgi/cgimain.c diff --git a/cgi/cgimain.c b/cgi/cgimain.c index 4ea98ec..236cca6 100644 --- a/cgi/cgimain.c +++ b/cgi/cgimain.c @@ -28,6 +28,7 @@ int main(int argc, char **argv) { progname = argv[0]; /* RFC 3875 s8.2 recommends rejecting PATH_INFO if we don't make use of * it. */ + if(!setlocale(LC_CTYPE, "")) disorder_error(errno, "error calling setlocale"); /* TODO we could make disorder/ACTION equivalent to disorder?action=ACTION */ if(getenv("PATH_INFO")) { /* TODO it might be nice to link back to the right place... */