diff --git a/arbtt.cabal b/arbtt.cabal
--- a/arbtt.cabal
+++ b/arbtt.cabal
@@ -1,5 +1,5 @@
 name:               arbtt
-version:            0.4.5
+version:            0.4.5.1
 license:            GPL
 license-file:       LICENSE
 category:           Desktop
@@ -35,6 +35,7 @@
     other-modules:
         Data
         Data.Binary.StringRef
+        CommonStartup
         Capture
         TimeLog
         UpgradeLog1
@@ -66,6 +67,7 @@
     other-modules:
         Data
         Data.Binary.StringRef
+        CommonStartup
         Categorize
         TimeLog
         Stats
@@ -83,6 +85,7 @@
     other-modules:
         Data
         Data.Binary.StringRef
+        CommonStartup
         TimeLog
     if os(windows) 
         cpp-options:    -DWIN32
@@ -98,6 +101,7 @@
     other-modules:
         Data
         Data.Binary.StringRef
+        CommonStartup
         TimeLog
     if os(windows) 
         cpp-options:    -DWIN32
diff --git a/src/CommonStartup.hs b/src/CommonStartup.hs
new file mode 100644
--- /dev/null
+++ b/src/CommonStartup.hs
@@ -0,0 +1,14 @@
+{-# LANGUAGE CPP #-}
+
+module CommonStartup where
+
+#ifndef WIN32
+import System.Locale.SetLocale
+#endif
+
+commonStartup :: IO ()
+commonStartup = do
+#ifndef WIN32
+	setLocale LC_ALL (Just "") 
+#endif
+	return ()
