[rfc][icedtea-web]encoding test
Jiri Vanek
jvanek at redhat.com
Tue Apr 17 06:55:33 PDT 2012
Hi!
This is reproducer for incorrect behaviour of icedtea-web when jnlps are in "unexpected" encoding.
We are expecting utf-8 everywhere, but windows users can very easily expose jnlps in different one.
And we should process them for unix user correctly.
I have used ISO-8859-2 encoding to torture icedtea-web.
All tests to this encoding have failed. I have added also set of UTF-8 tests above those cases, and
all those are passing (so test should be correct).
Sorry that diff is not in classical patch format, but diff tools have not cooperate well with mixed
utf8/non-utf8 content. And it is just adding files so "applying" should be simple as with patch.
Please note, that this adds 3 more passing and three more failing tests - which are representing the
issue. Maybe annotation marking this "representatives" will become necessary soon?
The name of the directory is so weird because I wanted to create resource containing those unhappy
characters. (The engine creates nameOfDirectory.jar)
I'm going to check this also for applets, but here launching informations are provided by brpwser so
it should be ok.
Changelog:
2012-04-17 Jiri Vanek <jvanek at redhat.com>
added encodings reproducer
* tests/jnlp_tests/simple/encodingTestsĚŠČŘŽÝÁÍÉĚÉŘŤÝÚŮÍÓÁŠĎŽŹŇ: new reproducer
* tests/jnlp_tests/simple/encodingTestsĚŠČŘŽÝÁÍÉĚÉŘŤÝÚŮÍÓÁŠĎŽŹŇ/srcs/encodingTest.java:
main class and method of new encodingTestsĚŠČŘŽÝÁÍÉĚÉŘŤÝÚŮÍÓÁŠĎŽŹŇ.jar
* tests/jnlp_tests/simple/encodingTestsĚŠČŘŽÝÁÍÉĚÉŘŤÝÚŮÍÓÁŠĎŽŹŇ/testcases/encodingTestTest.java:
testcases for jnlps of this reproducers
* tests/jnlp_tests/simple/encodingTestsĚŠČŘŽÝÁÍÉĚÉŘŤÝÚŮÍÓÁŠĎŽŹŇ/resources:
three utf-8 and three iso-8859-2 jnlp files
-------------- next part --------------
A non-text attachment was scrubbed...
Name: encodingsTest.tar.gz
Type: application/x-gzip
Size: 3283 bytes
Desc: not available
Url : http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20120417/1162bb88/encodingsTest.tar.gz
More information about the distro-pkg-dev
mailing list