[OpenJDK 2D-Dev] [9] RFR: JDK-8139216: Non-ASCII characters in CUPS printer names are not properly displayed
prasanta sadhukhan
prasanta.sadhukhan at oracle.com
Mon Oct 26 06:56:32 UTC 2015
Hi All,
I have modified the fix to assign printer name in case
UnsupportedEncodingException is thrown which is unlikely as we are using
UTF-8 as character encoding and not any user-supplied encoding.
http://cr.openjdk.java.net/~psadhukhan/8139216/webrev.01/
Regards
Prasanta
On 10/15/2015 4:16 PM, prasanta sadhukhan wrote:
> Hi All,
>
> Please review a fix for jdk9 where it was found that non-ASCII
> characters in CUPS printer name are not properly displayed.
>
> Bug: https://bugs.openjdk.java.net/browse/JDK-8139216
> webrev: http://cr.openjdk.java.net/~psadhukhan/8139216/webrev.00/
>
> It was found that the printer "äbc" (with the German umlaut "ä" as
> the first character) is displayed as "%C3%A4bc" in printer name.
> Fixed to use the UTF-8 charset to decode the printer name.
>
> I could not add any test because it involves adding printer having
> unicode character like "lpadmin -p "äbc" -v
> http://example.org/printer3 -E"
>
> Regards
> Prasanta
More information about the 2d-dev
mailing list