summaryrefslogtreecommitdiffhomepage
path: root/webserver.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'webserver.cpp')
-rw-r--r--webserver.cpp8
1 files changed, 8 insertions, 0 deletions
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 <configuration-filename>]" << 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)) {