On Thu, 15 May 2025 18:30:28 GMT, Naoto Sato <na...@openjdk.org> wrote:

>> I found a few other places in the code that can be cleaned up after the 
>> conversion to UTF-8.
>
> test/jdk/sun/text/resources/LocaleDataTest.java line 106:
> 
>> 104:  *        FormatData/fr_FR/MonthNames/0=janvier
>> 105:  *        FormatData/fr_FR/MonthNames/1=février
>> 106:  *        LocaleNames/fr_FR/US=États-Unis
> 
> This test data (LocaleData.cldr) is explicitly encoded in ISO-8859-1 with 
> unicode escapes for characters outside of it. So only changing these ones in 
> comment does not seem correct.

ISO-8859-1 does not sound good, and got me worried. But in fact it seems like 
the file is pure ASCII, and that is fine. 

However, if the file should ever be changed to include actual ISO-8859-1 
encoding, this might break if tools assume it is UTF-8-encoding, since not all 
ISO-8859-1 encodings are valid UTF-8.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/25228#discussion_r2106755160

Reply via email to