[
https://jira.jboss.org/jira/browse/GTNPORTAL-543?page=com.atlassian.jira....
]
Koen De Jaeger commented on GTNPORTAL-543:
------------------------------------------
To fix it I changed the following in PropertiesClassLoader:
Replace
byte[] buf = IOUtil.getStreamContentAsBytes(in);
ExoResourceBundle bundle = new ExoResourceBundle(new String(buf, "UTF-8"));
bundle.putAll(props);
with
Properties properties = new Properties();
properties.load(in);
props.putAll(properties);
Seems like this works just fine.
Another way would be to adapt ExoResourceBundle so that it adapts to the properties files
format more closely and deals with escaped characters and it should trim key and value
pairs before saving them in the resourcebundle.
Properties files are incorrectly read.
--------------------------------------
Key: GTNPORTAL-543
URL:
https://jira.jboss.org/jira/browse/GTNPORTAL-543
Project: GateIn Portal
Issue Type: Bug
Components: Internationalization and Localization
Reporter: Thomas Heute
Fix For: 3.0.0-CR01
See GTNPORTAL-537
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira