This is an automated email from the ASF dual-hosted git repository. ggregory pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-io.git
The following commit(s) were added to refs/heads/master by this push: new b56b9636c Use Unicode escapes for superscript characters. (#701) b56b9636c is described below commit b56b9636c8c94d6e1e50e6f8a2ef978f94eeed54 Author: Éamonn McManus <emcma...@google.com> AuthorDate: Mon Nov 11 10:38:57 2024 -0800 Use Unicode escapes for superscript characters. (#701) This file is encoded with ISO-8859-1 (or Windows-1252) which causes problems if it is compiled on a system that expects UTF-8. It might be better to switch the whole project to use UTF-8 encoding for source files, but that's a much bigger change. --- src/main/java/org/apache/commons/io/FileSystem.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/apache/commons/io/FileSystem.java b/src/main/java/org/apache/commons/io/FileSystem.java index 4db04cd2f..566389f93 100644 --- a/src/main/java/org/apache/commons/io/FileSystem.java +++ b/src/main/java/org/apache/commons/io/FileSystem.java @@ -90,10 +90,10 @@ public enum FileSystem { }, new String[] { "AUX", "COM1", "COM2", "COM3", "COM4", "COM5", "COM6", "COM7", "COM8", "COM9", - "COM�", "COM�", "COM�", // Yes, that's the order in Unicode + "COM\u00b2", "COM\u00b3", "COM\u00b9", // Superscript 2 3 1 in that order "CON", "CONIN$", "CONOUT$", "LPT1", "LPT2", "LPT3", "LPT4", "LPT5", "LPT6", "LPT7", "LPT8", "LPT9", - "LPT�", "LPT�", "LPT�", // Yes, that's the order in Unicode + "LPT\u00b2", "LPT\u00b3", "LPT\u00b9", // Superscript 2 3 1 in that order "NUL", "PRN" }, true, true, '\\'); // @formatter:on