ppd_section_t section; /* Order dependency section */
ppd_profile_t *profile; /* Pointer to color profile */
char **filter; /* Pointer to filter */
- cups_lang_t *language; /* Default language */
struct lconv *loc; /* Locale data */
int ui_keyword; /* Is this line a UI keyword? */
cups_encoding_t encoding; /* Encoding of PPD file */
ppd->coptions = cupsArrayNew((cups_array_func_t)ppd_compare_coptions,
NULL);
- /*
- * Get the default language for the user...
- */
-
- language = cupsLangDefault();
- loc = localeconv();
-
/*
* Read lines from the PPD file and add them to the file record...
*/
choice = NULL;
ui_keyword = 0;
encoding = CUPS_ISO8859_1;
+ loc = localeconv();
while ((mask = ppd_read(fp, &line, keyword, name, text, &string, 1, cg)) != 0)
{
* Reset language preferences...
*/
- cupsLangFree(language);
-
#ifdef DEBUG
if (!cupsFileEOF(fp))
DEBUG_printf(("1ppdOpen2: Premature EOF at %lu...\n",
ppdClose(ppd);
- cupsLangFree(language);
-
return (NULL);
}