You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "deven you (JIRA)" <ji...@apache.org> on 2010/08/11 08:27:16 UTC
[jira] Created: (HARMONY-6616) [classlib][nio_char] Incompatible
charsets of Charset.availableCharsets() between RI6 and Harmony6
[classlib][nio_char] Incompatible charsets of Charset.availableCharsets() between RI6 and Harmony6
--------------------------------------------------------------------------------------------------
Key: HARMONY-6616
URL: https://issues.apache.org/jira/browse/HARMONY-6616
Project: Harmony
Issue Type: Bug
Components: Classlib
Affects Versions: 5.0M14
Reporter: deven you
I have run a test to print all available charsets returned by Charset.availableCharsets() both on RI6 and Harmony6, and find RI and harmony return different names for some charsets, below is the summary:
RI6 names Harmony6 names
IBM00858 cp858
IBM850 cp850
IBM857 cp857
IBM860 cp860
IBM861 cp861
IBM862 cp862
IBM863 cp863
IBM864 cp864
IBM865 cp865
IBM866 cp866
IBM868 cp868
IBM869 cp869
x-IBM737 x-ibm-737_P100-1997
x-IBM856 cp856
x-IBM875 x-ibm-875_P100-1995
x-IBM922 cp922
x-IBM1006 x-ibm-1006_P100-1995
x-IBM1025 x-ibm-1025_P100-1995
x-IBM1112 x-ibm-1112_P100-1995
x-IBM1122 x-ibm-1122_P100-1999
x-IBM1123 x-ibm-1123_P100-1995
x-IBM1124 x-ibm-1124_P100-1996
x-IBM1097 x-ibm-1097_P100-1995
x-IBM1098 x-ibm-1098_P100-1995
x-MacCyrillic x-mac-cyrillic
x-MacGreek x-mac-greek
x-MacTurkish x-mac-turkish
Java spec for Charset.availableCharsets() says: Constructs a sorted map from canonical charset names to charset objects. So the difference is due to RI and Harmony6 use different charset names as the canonical names.
For example the pair of IBM00858 and cp858 belongs to the same charset, RI uses IBM00858 as the canonical name but Harmony uses cp858, thus they return different charset names for the availableCharsets(). Above charsets are provided by harmony built-in charsets. I suppose RI's behavior should be the right one which implies RI uses the correct canonical charset names so I have changed this built-in charsets to comply with RI.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (HARMONY-6616) [classlib][nio_char] Incompatible
charsets of Charset.availableCharsets() between RI6 and Harmony6
Posted by "Regis Xu (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-6616?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Regis Xu resolved HARMONY-6616.
-------------------------------
Fix Version/s: 5.0M16
Resolution: Fixed
Thanks Deven!
The patch was applied at trunk r998619, please verify.
> [classlib][nio_char] Incompatible charsets of Charset.availableCharsets() between RI6 and Harmony6
> --------------------------------------------------------------------------------------------------
>
> Key: HARMONY-6616
> URL: https://issues.apache.org/jira/browse/HARMONY-6616
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Affects Versions: 5.0M14
> Reporter: deven you
> Fix For: 5.0M16
>
> Attachments: HARMONY-6616.diff
>
> Original Estimate: 168h
> Remaining Estimate: 168h
>
> I have run a test to print all available charsets returned by Charset.availableCharsets() both on RI6 and Harmony6, and find RI and harmony return different names for some charsets, below is the summary:
> RI6 names Harmony6 names
> IBM00858 cp858
> IBM850 cp850
> IBM857 cp857
> IBM860 cp860
> IBM861 cp861
> IBM862 cp862
> IBM863 cp863
> IBM864 cp864
> IBM865 cp865
> IBM866 cp866
> IBM868 cp868
> IBM869 cp869
> x-IBM737 x-ibm-737_P100-1997
> x-IBM856 cp856
> x-IBM875 x-ibm-875_P100-1995
> x-IBM922 cp922
> x-IBM1006 x-ibm-1006_P100-1995
> x-IBM1025 x-ibm-1025_P100-1995
> x-IBM1112 x-ibm-1112_P100-1995
> x-IBM1122 x-ibm-1122_P100-1999
> x-IBM1123 x-ibm-1123_P100-1995
> x-IBM1124 x-ibm-1124_P100-1996
> x-IBM1097 x-ibm-1097_P100-1995
> x-IBM1098 x-ibm-1098_P100-1995
> x-MacCyrillic x-mac-cyrillic
> x-MacGreek x-mac-greek
> x-MacTurkish x-mac-turkish
> Java spec for Charset.availableCharsets() says: Constructs a sorted map from canonical charset names to charset objects. So the difference is due to RI and Harmony6 use different charset names as the canonical names.
> For example the pair of IBM00858 and cp858 belongs to the same charset, RI uses IBM00858 as the canonical name but Harmony uses cp858, thus they return different charset names for the availableCharsets(). Above charsets are provided by harmony built-in charsets. I suppose RI's behavior should be the right one which implies RI uses the correct canonical charset names so I have changed this built-in charsets to comply with RI.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (HARMONY-6616) [classlib][nio_char] Incompatible
charsets of Charset.availableCharsets() between RI6 and Harmony6
Posted by "deven you (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-6616?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
deven you updated HARMONY-6616:
-------------------------------
Attachment: HARMONY-6616.diff
> [classlib][nio_char] Incompatible charsets of Charset.availableCharsets() between RI6 and Harmony6
> --------------------------------------------------------------------------------------------------
>
> Key: HARMONY-6616
> URL: https://issues.apache.org/jira/browse/HARMONY-6616
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Affects Versions: 5.0M14
> Reporter: deven you
> Attachments: HARMONY-6616.diff
>
> Original Estimate: 168h
> Remaining Estimate: 168h
>
> I have run a test to print all available charsets returned by Charset.availableCharsets() both on RI6 and Harmony6, and find RI and harmony return different names for some charsets, below is the summary:
> RI6 names Harmony6 names
> IBM00858 cp858
> IBM850 cp850
> IBM857 cp857
> IBM860 cp860
> IBM861 cp861
> IBM862 cp862
> IBM863 cp863
> IBM864 cp864
> IBM865 cp865
> IBM866 cp866
> IBM868 cp868
> IBM869 cp869
> x-IBM737 x-ibm-737_P100-1997
> x-IBM856 cp856
> x-IBM875 x-ibm-875_P100-1995
> x-IBM922 cp922
> x-IBM1006 x-ibm-1006_P100-1995
> x-IBM1025 x-ibm-1025_P100-1995
> x-IBM1112 x-ibm-1112_P100-1995
> x-IBM1122 x-ibm-1122_P100-1999
> x-IBM1123 x-ibm-1123_P100-1995
> x-IBM1124 x-ibm-1124_P100-1996
> x-IBM1097 x-ibm-1097_P100-1995
> x-IBM1098 x-ibm-1098_P100-1995
> x-MacCyrillic x-mac-cyrillic
> x-MacGreek x-mac-greek
> x-MacTurkish x-mac-turkish
> Java spec for Charset.availableCharsets() says: Constructs a sorted map from canonical charset names to charset objects. So the difference is due to RI and Harmony6 use different charset names as the canonical names.
> For example the pair of IBM00858 and cp858 belongs to the same charset, RI uses IBM00858 as the canonical name but Harmony uses cp858, thus they return different charset names for the availableCharsets(). Above charsets are provided by harmony built-in charsets. I suppose RI's behavior should be the right one which implies RI uses the correct canonical charset names so I have changed this built-in charsets to comply with RI.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (HARMONY-6616) [classlib][nio_char] Incompatible
charsets of Charset.availableCharsets() between RI6 and Harmony6
Posted by "Hudson (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-6616?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12912217#action_12912217 ]
Hudson commented on HARMONY-6616:
---------------------------------
Integrated in Harmony-select-1.5-head-linux-x86_64 #111 (See [https://hudson.apache.org/hudson/job/Harmony-select-1.5-head-linux-x86_64/111/])
Apply patch for HARMONY-6616: [classlib][nio_char] Incompatible charsets of Charset.availableCharsets() between RI6 and Harmony6
> [classlib][nio_char] Incompatible charsets of Charset.availableCharsets() between RI6 and Harmony6
> --------------------------------------------------------------------------------------------------
>
> Key: HARMONY-6616
> URL: https://issues.apache.org/jira/browse/HARMONY-6616
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Affects Versions: 5.0M14
> Reporter: deven you
> Fix For: 5.0M16
>
> Attachments: HARMONY-6616.diff
>
> Original Estimate: 168h
> Remaining Estimate: 168h
>
> I have run a test to print all available charsets returned by Charset.availableCharsets() both on RI6 and Harmony6, and find RI and harmony return different names for some charsets, below is the summary:
> RI6 names Harmony6 names
> IBM00858 cp858
> IBM850 cp850
> IBM857 cp857
> IBM860 cp860
> IBM861 cp861
> IBM862 cp862
> IBM863 cp863
> IBM864 cp864
> IBM865 cp865
> IBM866 cp866
> IBM868 cp868
> IBM869 cp869
> x-IBM737 x-ibm-737_P100-1997
> x-IBM856 cp856
> x-IBM875 x-ibm-875_P100-1995
> x-IBM922 cp922
> x-IBM1006 x-ibm-1006_P100-1995
> x-IBM1025 x-ibm-1025_P100-1995
> x-IBM1112 x-ibm-1112_P100-1995
> x-IBM1122 x-ibm-1122_P100-1999
> x-IBM1123 x-ibm-1123_P100-1995
> x-IBM1124 x-ibm-1124_P100-1996
> x-IBM1097 x-ibm-1097_P100-1995
> x-IBM1098 x-ibm-1098_P100-1995
> x-MacCyrillic x-mac-cyrillic
> x-MacGreek x-mac-greek
> x-MacTurkish x-mac-turkish
> Java spec for Charset.availableCharsets() says: Constructs a sorted map from canonical charset names to charset objects. So the difference is due to RI and Harmony6 use different charset names as the canonical names.
> For example the pair of IBM00858 and cp858 belongs to the same charset, RI uses IBM00858 as the canonical name but Harmony uses cp858, thus they return different charset names for the availableCharsets(). Above charsets are provided by harmony built-in charsets. I suppose RI's behavior should be the right one which implies RI uses the correct canonical charset names so I have changed this built-in charsets to comply with RI.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (HARMONY-6616) [classlib][nio_char] Incompatible
charsets of Charset.availableCharsets() between RI6 and Harmony6
Posted by "Hudson (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-6616?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12911185#action_12911185 ]
Hudson commented on HARMONY-6616:
---------------------------------
Integrated in Harmony-1.5-head-linux-x86_64 #950 (See [https://hudson.apache.org/hudson/job/Harmony-1.5-head-linux-x86_64/950/])
Apply patch for HARMONY-6616: [classlib][nio_char] Incompatible charsets of Charset.availableCharsets() between RI6 and Harmony6
> [classlib][nio_char] Incompatible charsets of Charset.availableCharsets() between RI6 and Harmony6
> --------------------------------------------------------------------------------------------------
>
> Key: HARMONY-6616
> URL: https://issues.apache.org/jira/browse/HARMONY-6616
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Affects Versions: 5.0M14
> Reporter: deven you
> Fix For: 5.0M16
>
> Attachments: HARMONY-6616.diff
>
> Original Estimate: 168h
> Remaining Estimate: 168h
>
> I have run a test to print all available charsets returned by Charset.availableCharsets() both on RI6 and Harmony6, and find RI and harmony return different names for some charsets, below is the summary:
> RI6 names Harmony6 names
> IBM00858 cp858
> IBM850 cp850
> IBM857 cp857
> IBM860 cp860
> IBM861 cp861
> IBM862 cp862
> IBM863 cp863
> IBM864 cp864
> IBM865 cp865
> IBM866 cp866
> IBM868 cp868
> IBM869 cp869
> x-IBM737 x-ibm-737_P100-1997
> x-IBM856 cp856
> x-IBM875 x-ibm-875_P100-1995
> x-IBM922 cp922
> x-IBM1006 x-ibm-1006_P100-1995
> x-IBM1025 x-ibm-1025_P100-1995
> x-IBM1112 x-ibm-1112_P100-1995
> x-IBM1122 x-ibm-1122_P100-1999
> x-IBM1123 x-ibm-1123_P100-1995
> x-IBM1124 x-ibm-1124_P100-1996
> x-IBM1097 x-ibm-1097_P100-1995
> x-IBM1098 x-ibm-1098_P100-1995
> x-MacCyrillic x-mac-cyrillic
> x-MacGreek x-mac-greek
> x-MacTurkish x-mac-turkish
> Java spec for Charset.availableCharsets() says: Constructs a sorted map from canonical charset names to charset objects. So the difference is due to RI and Harmony6 use different charset names as the canonical names.
> For example the pair of IBM00858 and cp858 belongs to the same charset, RI uses IBM00858 as the canonical name but Harmony uses cp858, thus they return different charset names for the availableCharsets(). Above charsets are provided by harmony built-in charsets. I suppose RI's behavior should be the right one which implies RI uses the correct canonical charset names so I have changed this built-in charsets to comply with RI.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Closed: (HARMONY-6616) [classlib][nio_char] Incompatible
charsets of Charset.availableCharsets() between RI6 and Harmony6
Posted by "deven you (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-6616?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
deven you closed HARMONY-6616.
------------------------------
> [classlib][nio_char] Incompatible charsets of Charset.availableCharsets() between RI6 and Harmony6
> --------------------------------------------------------------------------------------------------
>
> Key: HARMONY-6616
> URL: https://issues.apache.org/jira/browse/HARMONY-6616
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Affects Versions: 5.0M14
> Reporter: deven you
> Fix For: 5.0M16
>
> Attachments: HARMONY-6616.diff
>
> Original Estimate: 168h
> Remaining Estimate: 168h
>
> I have run a test to print all available charsets returned by Charset.availableCharsets() both on RI6 and Harmony6, and find RI and harmony return different names for some charsets, below is the summary:
> RI6 names Harmony6 names
> IBM00858 cp858
> IBM850 cp850
> IBM857 cp857
> IBM860 cp860
> IBM861 cp861
> IBM862 cp862
> IBM863 cp863
> IBM864 cp864
> IBM865 cp865
> IBM866 cp866
> IBM868 cp868
> IBM869 cp869
> x-IBM737 x-ibm-737_P100-1997
> x-IBM856 cp856
> x-IBM875 x-ibm-875_P100-1995
> x-IBM922 cp922
> x-IBM1006 x-ibm-1006_P100-1995
> x-IBM1025 x-ibm-1025_P100-1995
> x-IBM1112 x-ibm-1112_P100-1995
> x-IBM1122 x-ibm-1122_P100-1999
> x-IBM1123 x-ibm-1123_P100-1995
> x-IBM1124 x-ibm-1124_P100-1996
> x-IBM1097 x-ibm-1097_P100-1995
> x-IBM1098 x-ibm-1098_P100-1995
> x-MacCyrillic x-mac-cyrillic
> x-MacGreek x-mac-greek
> x-MacTurkish x-mac-turkish
> Java spec for Charset.availableCharsets() says: Constructs a sorted map from canonical charset names to charset objects. So the difference is due to RI and Harmony6 use different charset names as the canonical names.
> For example the pair of IBM00858 and cp858 belongs to the same charset, RI uses IBM00858 as the canonical name but Harmony uses cp858, thus they return different charset names for the availableCharsets(). Above charsets are provided by harmony built-in charsets. I suppose RI's behavior should be the right one which implies RI uses the correct canonical charset names so I have changed this built-in charsets to comply with RI.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.