diff options
author | msweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be> | 2008-06-18 16:44:53 +0000 |
---|---|---|
committer | msweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be> | 2008-06-18 16:44:53 +0000 |
commit | dd1abb6b5f145c5e5f279d8848b5f3ec161fd227 (patch) | |
tree | 48d46ed8d33890c2b5d047996f5a61aab8990520 /systemv/cupstestppd.c | |
parent | c934a06cde0e8f2657b7e614df31fd300658d53e (diff) |
Merge changes from CUPS 1.4svn-r7670.
git-svn-id: svn+ssh://src.apple.com/svn/cups/easysw/current@810 a1ca3aef-8c08-0410-bb20-df032aa958be
Diffstat (limited to 'systemv/cupstestppd.c')
-rw-r--r-- | systemv/cupstestppd.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/systemv/cupstestppd.c b/systemv/cupstestppd.c index 3e9b87416..e11f6dc46 100644 --- a/systemv/cupstestppd.c +++ b/systemv/cupstestppd.c @@ -141,12 +141,14 @@ main(int argc, /* I - Number of command-line args */ ppd_group_t *group2; /* UI group */ ppd_option_t *option2; /* Standard UI option */ ppd_choice_t *choice; /* Standard UI option choice */ + struct lconv *loc; /* Locale data */ static char *uis[] = { "BOOLEAN", "PICKONE", "PICKMANY" }; static char *sections[] = { "ANY", "DOCUMENT", "EXIT", "JCL", "PAGE", "PROLOG" }; _cupsSetLocale(argv); + loc = localeconv(); /* * Display PPD files for each file listed on the command-line... @@ -370,7 +372,7 @@ main(int argc, /* I - Number of command-line args */ if ((attr = ppdFindAttr(ppd, "FormatVersion", NULL)) != NULL && attr->value) - ppdversion = (int)(10 * atof(attr->value) + 0.5); + ppdversion = (int)(10 * _cupsStrScand(attr->value, NULL, loc) + 0.5); for (j = 0; j < ppd->num_filters; j ++) if (strstr(ppd->filters[j], "application/vnd.cups-raster")) |