From 4732dc63657f4c6fc342f7674f7dc7c666b293dc Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Sun, 12 Apr 2020 22:20:33 +0200 Subject: webbox (WIP) --- webserver.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'webserver.cpp') diff --git a/webserver.cpp b/webserver.cpp index 51dc6a7..3e312f4 100644 --- a/webserver.cpp +++ b/webserver.cpp @@ -13,8 +13,16 @@ void usage() std::cout << "usage: webserver [-c ]" << std::endl; } +void initlocale() { + if (setenv("LC_ALL", "UTF-8", 1)) { + exit(1); + } +} + int main(int argc, char* argv[]) { + initlocale(); + std::string config_filename; if (!(argc == 1 || argc == 3)) { -- cgit v1.2.3