~mdw
/
sgt
/
halibut
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
538cf67
)
Revert to "C" locale for LC_NUMERIC, so that PDFs won't be corrupted
author
simon
<simon@cda61777-01e9-0310-a592-d414129be87e>
Sun, 13 Nov 2005 12:52:13 +0000
(12:52 +0000)
committer
simon
<simon@cda61777-01e9-0310-a592-d414129be87e>
Sun, 13 Nov 2005 12:52:13 +0000
(12:52 +0000)
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
patch
|
blob
|
blame
|
history
diff --git
a/main.c
b/main.c
index
4304c7c
..
eb95fc3
100644
(file)
--- 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.