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-compress.git

commit d1274fb9f22b9a4059ceecafceb2a0bc4036c376
Author: Gary D. Gregory <garydgreg...@gmail.com>
AuthorDate: Sun Jul 20 10:42:19 2025 -0400

    Use StringUtils.toRootLowerCase
---
 .../org/apache/commons/compress/archivers/tar/TarArchiveEntry.java    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/src/main/java/org/apache/commons/compress/archivers/tar/TarArchiveEntry.java 
b/src/main/java/org/apache/commons/compress/archivers/tar/TarArchiveEntry.java
index b1ac4c218..19c2906c2 100644
--- 
a/src/main/java/org/apache/commons/compress/archivers/tar/TarArchiveEntry.java
+++ 
b/src/main/java/org/apache/commons/compress/archivers/tar/TarArchiveEntry.java
@@ -38,7 +38,6 @@
 import java.util.Date;
 import java.util.HashMap;
 import java.util.List;
-import java.util.Locale;
 import java.util.Map;
 import java.util.Objects;
 import java.util.Set;
@@ -52,6 +51,7 @@
 import org.apache.commons.compress.utils.IOUtils;
 import org.apache.commons.compress.utils.ParsingUtils;
 import org.apache.commons.io.file.attribute.FileTimes;
+import org.apache.commons.lang3.StringUtils;
 import org.apache.commons.lang3.SystemProperties;
 
 /**
@@ -230,7 +230,7 @@ private static String normalizeFileName(String fileName, 
final boolean preserveA
         if (!preserveAbsolutePath) {
             final String property = SystemProperties.getOsName();
             if (property != null) {
-                final String osName = property.toLowerCase(Locale.ROOT);
+                final String osName = StringUtils.toRootLowerCase(property);
 
                 // Strip off drive letters!
                 // REVIEW Would a better check be "(File.separator == '\')"?

Reply via email to