summaryrefslogtreecommitdiff
path: root/vdr.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2012-03-14 09:12:58 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2012-03-14 09:12:58 +0100
commitcd676fda36688c2a125965501732e92afad3fa50 (patch)
treecdd8516315a0f2d47aea39fbc32c35fda515c03b /vdr.c
parentd62f7104138a48f77efd385cc2a8435515addd33 (diff)
downloadvdr-cd676fda36688c2a125965501732e92afad3fa50.tar.gz
vdr-cd676fda36688c2a125965501732e92afad3fa50.tar.bz2
Moved setting LC_NUMERIC further up to make sure any floating point numbers use a decimal point
Diffstat (limited to 'vdr.c')
-rw-r--r--vdr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vdr.c b/vdr.c
index 6df53fdd..bafd4efd 100644
--- a/vdr.c
+++ b/vdr.c
@@ -22,7 +22,7 @@
*
* The project's page is at http://www.tvdr.de
*
- * $Id: vdr.c 2.34 2012/03/09 09:55:15 kls Exp $
+ * $Id: vdr.c 2.35 2012/03/14 09:09:19 kls Exp $
*/
#include <getopt.h>
@@ -173,6 +173,7 @@ int main(int argc, char *argv[])
// Initiate locale:
setlocale(LC_ALL, "");
+ setlocale(LC_NUMERIC, "C"); // makes sure any floating point numbers written use a decimal point
// Command line options:
@@ -550,7 +551,6 @@ int main(int argc, char *argv[])
isyslog("codeset is '%s' - %s", CodeSet, known ? "known" : "unknown");
cCharSetConv::SetSystemCharacterTable(CodeSet);
}
- setlocale(LC_NUMERIC, "C"); // makes sure any floating point numbers written use a decimal point
// Initialize internationalization: