[cups.bugs] [LOW] STR #2651: Java libraries are using iso-8859-1 for requests

Thomas Küstermann t.kuestermann at tu-bs.de
Sat Jan 5 07:13:08 PST 2008


DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

I refer to the java libraries in the CUPS source package, especially
<CUPS-Package>/scripting/java/src/com/easyws/cups/Cups.java.
The packages are using 'ISO-8859-1' to make requests to a CUPS server.

--- example ---
a = new IPPAttribute( IPPDefs.TAG_OPERATION, IPPDefs.TAG_CHARSET,
                             "attributes-charset" );
a.addString( "", "iso-8859-1" );
---/example ---

Any request to a CUPS server fails with the message 'unsupported character
set "iso-8859-1"'.

As I have discovered, the cupsd only supports 'UTF-8'. The java sources
should be fixed to 'UTF-8' to work correctly.

Link: http://www.cups.org/str.php?L2651
Version: 1.3.5





More information about the cups mailing list