From c1a1cd703d8eb64a0631ff27ba1072c0aa8e1852 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Sun, 13 Nov 2005 12:52:13 +0000 Subject: Revert to "C" locale for LC_NUMERIC, so that PDFs won't be corrupted by the use of a comma as a decimal separator. [originally from svn r6456] --- main.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/main.c b/main.c index 4304c7c..eb95fc3 100644 --- a/main.c +++ b/main.c @@ -50,7 +50,16 @@ int main(int argc, char **argv) { paragraph *cfg, *cfg_tail; void *pre_backend_data[16]; + /* + * Use the specified locale everywhere. It'll be used for + * output of error messages, and as the default character set + * for input files if one is not explicitly specified. + * + * However, we need to use standard numeric formatting for + * output of things like PDF. + */ setlocale(LC_ALL, ""); + setlocale(LC_NUMERIC, "C"); /* * Set up initial (default) parameters. -- cgit v1.1