[jira] [Updated] (NETBEANS-5181) NbBundle only accepts ISO-8859-1 while UTF-8 is default since JDK9
[ https://issues.apache.org/jira/browse/NETBEANS-5181?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] ASF GitHub Bot updated NETBEANS-5181: - Labels: pull-request-available (was: ) > NbBundle only accepts ISO-8859-1 while UTF-8 is default since JDK9 > -- > > Key: NETBEANS-5181 > URL: https://issues.apache.org/jira/browse/NETBEANS-5181 > Project: NetBeans > Issue Type: Improvement > Components: nblocalization - Code, platform - Filesystems, platform > - Other >Affects Versions: 9.0, 10.0, 11.0, 12.2 > Environment: All >Reporter: Jerome Lelasseux >Priority: Major > Labels: pull-request-available > Time Spent: 10m > Remaining Estimate: 0h > > Since JDK9 default encoding for .properties files (resource bundles) is > UTF-8. JDK's ResourceBundle.getBundle().getString() automatically handles > UTF-8 or ISO-8859-1 files via PropertyResourceBundle. > But NbBundle methods always read resource bundles as ISO-8859-1. Many > translation platforms around produce UTF-8 files. Adapting the build process > to add a transcoding step is not so easy and introduces new problems. > The NB platform code should be updated to have by default the same behavior > as the current JDKs. > I'll try to come up with a patch... > > > -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Updated] (NETBEANS-5181) NbBundle only accepts ISO-8859-1 while UTF-8 is default since JDK9
[ https://issues.apache.org/jira/browse/NETBEANS-5181?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jerome Lelasseux updated NETBEANS-5181: --- Description: Since JDK9 default encoding for .properties files (resource bundles) is UTF-8. JDK's ResourceBundle.getBundle().getString() automatically handles UTF-8 or ISO-8859-1 files via PropertyResourceBundle. But NbBundle methods always read resource bundles as ISO-8859-1. Many translation platforms around produce UTF-8 files. Adapting the build process to add a transcoding step is not so easy and introduces new problems. The NB platform code should be updated to have by default the same behavior as the current JDKs. I'll try to come up with a patch... was: Since JDK9 default encoding for .properties files (resource bundles) is UTF-8. JDK's ResourceBundle.getBundle().getString() automatically handles UTF-8 or ISO-8859-1 files. But NbBundle methods always read resource bundles as ISO-8859-1. Many translation platforms around produce UTF-8 files. Adapting the build process to add a transcoding step is not so easy and introduces new problems. The NB platform code should be updated to have the same behavior as JDK's ResourceBundle.getBundle() (or PropertyResourceBundle on which it relies upon). I'll try to come up with a patch... > NbBundle only accepts ISO-8859-1 while UTF-8 is default since JDK9 > -- > > Key: NETBEANS-5181 > URL: https://issues.apache.org/jira/browse/NETBEANS-5181 > Project: NetBeans > Issue Type: Improvement > Components: nblocalization - Code, platform - Filesystems, platform > - Other >Affects Versions: 9.0, 10.0, 11.0, 12.2 > Environment: All >Reporter: Jerome Lelasseux >Priority: Major > > Since JDK9 default encoding for .properties files (resource bundles) is > UTF-8. JDK's ResourceBundle.getBundle().getString() automatically handles > UTF-8 or ISO-8859-1 files via PropertyResourceBundle. > But NbBundle methods always read resource bundles as ISO-8859-1. Many > translation platforms around produce UTF-8 files. Adapting the build process > to add a transcoding step is not so easy and introduces new problems. > The NB platform code should be updated to have by default the same behavior > as the current JDKs. > I'll try to come up with a patch... > > > -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Updated] (NETBEANS-5181) NbBundle only accepts ISO-8859-1 while UTF-8 is default since JDK9
[ https://issues.apache.org/jira/browse/NETBEANS-5181?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jerome Lelasseux updated NETBEANS-5181: --- Description: Since JDK9 default encoding for .properties files (resource bundles) is UTF-8. JDK's ResourceBundle.getBundle().getString() automatically handles UTF-8 or ISO-8859-1 files. But NbBundle methods always read resource bundles as ISO-8859-1. Many translation platforms around produce UTF-8 files. Adapting the build process to add a transcoding step is not so easy and introduces new problems. The NB platform code should be updated to have the same behavior as JDK's ResourceBundle.getBundle() (or PropertyResourceBundle on which it relies upon). I'll try to come up with a patch... was: Since JDK9 default encoding for .properties files (resource bundles) is UTF-8. JDK's ResourceBundle.getBundle().getString() automatically handles UTF-8 or ISO-8859-1 files. But NbBundle methods always read resource bundles as ISO-8859-1. The platform code should be updated to have the same behavior as JDK's ResourceBundle.getBundle() (or PropertyResourceBundle on which it relies upon). I'll try to come up with a patch... > NbBundle only accepts ISO-8859-1 while UTF-8 is default since JDK9 > -- > > Key: NETBEANS-5181 > URL: https://issues.apache.org/jira/browse/NETBEANS-5181 > Project: NetBeans > Issue Type: Improvement > Components: nblocalization - Code, platform - Filesystems, platform > - Other >Affects Versions: 9.0, 10.0, 11.0, 12.2 > Environment: All >Reporter: Jerome Lelasseux >Priority: Major > > Since JDK9 default encoding for .properties files (resource bundles) is > UTF-8. JDK's ResourceBundle.getBundle().getString() automatically handles > UTF-8 or ISO-8859-1 files. > But NbBundle methods always read resource bundles as ISO-8859-1. Many > translation platforms around produce UTF-8 files. Adapting the build process > to add a transcoding step is not so easy and introduces new problems. > The NB platform code should be updated to have the same behavior as JDK's > ResourceBundle.getBundle() (or PropertyResourceBundle on which it relies > upon). > I'll try to come up with a patch... > > > -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Updated] (NETBEANS-5181) NbBundle only accepts ISO-8859-1 while UTF-8 is default since JDK9
[ https://issues.apache.org/jira/browse/NETBEANS-5181?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jerome Lelasseux updated NETBEANS-5181: --- Description: Since JDK9 default encoding for .properties files (resource bundles) is UTF-8. JDK's ResourceBundle.getBundle().getString() automatically handles UTF-8 or ISO-8859-1 files. But NbBundle methods always read resource bundles as ISO-8859-1. The platform code should be updated to have the same behavior as JDK's ResourceBundle.getBundle() (or PropertyResourceBundle on which it relies upon). I'll try to come up with a patch... was: Since JDK9 default encoding for .properties files (resource bundles) is UTF-8. JDK's ResourceBundle.getBundle().getString() automatically handles UTF-8 or ISO-8859-1 files. But NbBundle methods always read resource bundles as ISO-8859-1. The platform code should be updated to have the same behavior as ResourceBundle.getBundle() (or PropertyResourceBundle on which it relies upon). I'll try to come up with a patch... > NbBundle only accepts ISO-8859-1 while UTF-8 is default since JDK9 > -- > > Key: NETBEANS-5181 > URL: https://issues.apache.org/jira/browse/NETBEANS-5181 > Project: NetBeans > Issue Type: Improvement > Components: nblocalization - Code, platform - Filesystems, platform > - Other >Affects Versions: 9.0, 10.0, 11.0, 12.2 > Environment: All >Reporter: Jerome Lelasseux >Priority: Major > > Since JDK9 default encoding for .properties files (resource bundles) is > UTF-8. JDK's ResourceBundle.getBundle().getString() automatically handles > UTF-8 or ISO-8859-1 files. > But NbBundle methods always read resource bundles as ISO-8859-1. > The platform code should be updated to have the same behavior as JDK's > ResourceBundle.getBundle() (or PropertyResourceBundle on which it relies > upon). > I'll try to come up with a patch... > > > -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Updated] (NETBEANS-5181) NbBundle only accepts ISO-8859-1 while UTF-8 is default since JDK9
[ https://issues.apache.org/jira/browse/NETBEANS-5181?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jerome Lelasseux updated NETBEANS-5181: --- Description: Since JDK9 default encoding for .properties files (resource bundles) is UTF-8. JDK's ResourceBundle.getBundle().getString() automatically handles UTF-8 or ISO-8859-1 files. But NbBundle methods always read resource bundles as ISO-8859-1. The platform code should be updated to have the same behavior as ResourceBundle.getBundle() (or PropertyResourceBundle on which it relies upon). I'll try to come up with a patch... was: Since JDK9 default encoding for .properties files (resource bundle) is UTF-8. JDK's ResourceBundle.getBundle().getString() automatically handles UTF-8 or ISO-8859-1 files. But NbBundle.getMessage() always reads resource bundles are ISO-8859-1. And I assume it is used internally in the NB platform code, because when I use branding localization (e.g. change the main File menu title via the Branding dialog), or if I localize an action declared with annotation (@ActionRegistration(displayName="CTL_MyName", lazy=true), then the bundle file is always read as ISO. The platform code should be updated to rely on the JDK ResourceBundle.getBundle(). I could try to make a patch if it's not too complicated, but I need help where to look first, I'm not familar with NB internal code. > NbBundle only accepts ISO-8859-1 while UTF-8 is default since JDK9 > -- > > Key: NETBEANS-5181 > URL: https://issues.apache.org/jira/browse/NETBEANS-5181 > Project: NetBeans > Issue Type: Improvement > Components: nblocalization - Code, platform - Filesystems, platform > - Other >Affects Versions: 9.0, 10.0, 11.0, 12.2 > Environment: All >Reporter: Jerome Lelasseux >Priority: Major > > Since JDK9 default encoding for .properties files (resource bundles) is > UTF-8. JDK's ResourceBundle.getBundle().getString() automatically handles > UTF-8 or ISO-8859-1 files. > But NbBundle methods always read resource bundles as ISO-8859-1. > The platform code should be updated to have the same behavior as > ResourceBundle.getBundle() (or PropertyResourceBundle on which it relies > upon). > I'll try to come up with a patch... > > > -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Updated] (NETBEANS-5181) NbBundle only accepts ISO-8859-1 while UTF-8 is default since JDK9
[ https://issues.apache.org/jira/browse/NETBEANS-5181?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jerome Lelasseux updated NETBEANS-5181: --- Description: Since JDK9 default encoding for .properties files (resource bundle) is UTF-8. JDK's ResourceBundle.getBundle().getString() automatically handles UTF-8 or ISO-8859-1 files. But NbBundle.getMessage() always reads resource bundles are ISO-8859-1. And I assume it is used internally in the NB platform code, because when I use branding localization (e.g. change the main File menu title via the Branding dialog), or if I localize an action declared with annotation (@ActionRegistration(displayName="CTL_MyName", lazy=true), then the bundle file is always read as ISO. The platform code should be updated to rely on the JDK ResourceBundle.getBundle(). I could try to make a patch if it's not too complicated, but I need help where to look first, I'm not familar with NB internal code. was: Since JDK9 the default encoding for .properties files (resource bundle) is UTF-8. So JDK's ResourceBundle.getBundle().getString() automatically handles UTF-8 or ISO-8859-1 files. But the NbBundle.getMessage() always read resource bundles are ISO-8859-1. And I assume it is used internally in the NB platform code, because when I use branding localization (e.g. change the main File menu title via the Branding dialog), or if I localize an action declared with annotation (@ActionResgitration(displayName="CTL_MyName", lazy=true), then the bundle file is always read as ISO. The platform code should be updated to rely on the JDK ResourceBundle.getBundle(). I could try to make a patch if it's not too complicated, but I need help where to look first, I'm not familar with NB internal code. > NbBundle only accepts ISO-8859-1 while UTF-8 is default since JDK9 > -- > > Key: NETBEANS-5181 > URL: https://issues.apache.org/jira/browse/NETBEANS-5181 > Project: NetBeans > Issue Type: Improvement > Components: nblocalization - Code, platform - Filesystems, platform > - Other >Affects Versions: 9.0, 10.0, 11.0, 12.2 > Environment: All >Reporter: Jerome Lelasseux >Priority: Major > > Since JDK9 default encoding for .properties files (resource bundle) is UTF-8. > JDK's ResourceBundle.getBundle().getString() automatically handles UTF-8 or > ISO-8859-1 files. > But NbBundle.getMessage() always reads resource bundles are ISO-8859-1. And I > assume it is used internally in the NB platform code, because when I use > branding localization (e.g. change the main File menu title via the Branding > dialog), or if I localize an action declared with annotation > (@ActionRegistration(displayName="CTL_MyName", lazy=true), then the bundle > file is always read as ISO. > The platform code should be updated to rely on the JDK > ResourceBundle.getBundle(). > I could try to make a patch if it's not too complicated, but I need help > where to look first, I'm not familar with NB internal code. > > > -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists