Community
Participate
Working Groups
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.13) Gecko/2009080315 Ubuntu/9.04 (jaunty) Firefox/3.0.13 Build Identifier: M20090211-1700 The current code to read and write the bundles.info file uses the default encoding. For example in org.eclipse.equinox.internal.simpleconfigurator.utils.SimpleConfiguratorUtils#readConfiguration(URL, URI) r = new BufferedReader(new InputStreamReader(url.openStream())); should be r = new BufferedReader(new InputStreamReader(url.openStream(), Charset.forName("UTF-8")); The writer would need to be updated similarly. There is an RCP application for which a bundles.info is generated during the build. Currently this is not a problem as all of the bundle names contain only lower ASCII characters which map the same in almost any character set. However, should there ever be a bundle with an odd name in the future, the bundles.info encoded on the build machine may not deserialize correctly on a customer machine with a different default encoding. A similar situation could occur in the rarer case that the default encoding should change. Reproducible: Always Steps to Reproduce: 1. Generate a bundles.info file with a bundle in a file named ಠ_ಠ.jar (note that this is "\u3232_\u3232.jar", as I realize bugzilla may bugger it up itself, or you may not have a font with this glyph). 2. Change the default character set, or move the file to a machine with a different default character set. 3. Watch the a jar not get picked up as a bundle. characters != bytes && !plainTextFile.exists()
It appears I was right, bugzilla did bugger it up. It appears that the bug submission sanitizes the input (converted the character in the edit box which maps to U+3232 to ಠ) and the display end does it again (converted the & in ಠ to &). Converting back and forth between text encodings leads to headache.
It appears I did the conversions wrong myself. The name should read "\u0CA0_\u0CA0.jar". I apparently forgot that ಠ is decimal and should map to U+0CA0. Sorry for any confusion this may cause.
See also bug #289544.
See also bug 282554 for a similar problem with eclipse.ini.
Created attachment 164437 [details] patch proposed patch
Created attachment 164605 [details] patch Updated patch. Don't write utf-8 if the simpleconfigurator is an older version that won't be able to read it.
this patch is released.
*** Bug 307472 has been marked as a duplicate of this bug. ***