From 740a7d6ac4e2894b7a9ae4bb6d57c2e5895883aa Mon Sep 17 00:00:00 2001 From: simon Date: Sun, 13 Nov 2005 12:52:13 +0000 Subject: [PATCH] Revert to "C" locale for LC_NUMERIC, so that PDFs won't be corrupted by the use of a comma as a decimal separator. git-svn-id: svn://svn.tartarus.org/sgt/halibut@6456 cda61777-01e9-0310-a592-d414129be87e --- 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. -- 2.11.0