New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
_cupsLangPrintf() doesn't print with en_US.ASCII locale #3832
Comments
CUPS.org User: mike Jiri, The simplest fix for 1.4.x is probably just to map ASCII to ISO-8859-1 in the transcoding code; for CUPS 1.5 we actually switched to using iconv so the "right" things will happen. |
CUPS.org User: mike Fixed in Subversion repository. A 1.4.x and 1.5.x version of the fix is attached; the charset->UTF-8 mapping using the UTF-8 "identity" path, while the UTF-8->charset mapping uses a modified version of the ISO-8859-1 "fast" path (which will map unicode characters to "?"). |
"cups-1.4.6-ascii.patch": diff -up cups-1.4.6/cups/language.c.ascii cups-1.4.6/cups/language.c
|
"str3832.patch": Index: CHANGES-1.4.txt--- CHANGES-1.4.txt (revision 9694)
destptr = dest;
while (_src && destptr < destend)
|
"str3832-1.4.patch": Index: cups/transcode.c--- cups/transcode.c (revision 9694)
@@ -403,7 +404,7 @@
Index: CHANGES.txt--- CHANGES.txt (revision 9694) +CHANGES.txt - 2011-04-18CHANGES IN CUPS V1.4.7
|
Version: 1.4.6
CUPS.org User: jpopelka
Binaries (all from systemv directory) using _cupsLangPrintf()
don't print anything out when locale is set to en_US.ASCII
Problem is that there's no us-ascii.txt data file so
cupsUTF8ToCharset(encoding = CUPS_US_ASCII)
can't transcode to ASCII.
I have no idea whether this is a bug or designed so.
Work-around could be to treat CUPS_US_ASCII the same way as other "unknown" encoding. See attached patch.
See also original bug report
https://bugzilla.redhat.com/show_bug.cgi?id=681836
The text was updated successfully, but these errors were encountered: