ALT Linux repositórios
S: | 2.4.7-alt1 |
5.0: | 1.3.10-alt1 |
4.1: | 1.3.10-alt0.M41.4 |
+updates: | 1.3.9-alt1.M41.1 |
4.0: | 1.2.12-alt6.M40.9 |
+updates: | 1.2.12-alt6.M40.8 |
3.0: | 1.1.20-alt14.1 |
Group :: Sistema/Servidores
RPM: cups
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
Patch: cups-1.1.20-alt-locale.patch
Download
Download
diff -Naur cups-1.1.20/cups/language.c cups-1.1.20.new/cups/language.c
--- cups-1.1.20/cups/language.c 2003-11-19 21:25:35 +0300
+++ cups-1.1.20.new/cups/language.c 2003-11-28 17:45:23 +0300
@@ -227,8 +227,9 @@
"CP1256",
"CP1257",
"CP1258",
- "KOI8R",
- "KOI8U"
+ "CP866",
+ "KOI8-R",
+ "KOI8-U"
};
@@ -411,7 +411,10 @@
if ((lang = cups_cache_lookup(real, encoding)) != NULL)
return (lang);
- snprintf(filename, sizeof(filename), "%s/%s/cups_%s", localedir, real, real);
+ if (charset[0])
+ snprintf(filename, sizeof(filename), "%s/%s.%s/cups_%s", localedir, real, charset, real);
+ else
+ snprintf(filename, sizeof(filename), "%s/%s/cups_%s", localedir, real, real);
if (!country[0] || access(filename, 0))
{