This is an automated email from the ASF dual-hosted git repository.

pjfanning pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/poi.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 71e95654e8 CodePageUtil: return Cp1256 for CP_WINDOWS_1256 when 
javaLangFormat is true (#1517)
71e95654e8 is described below

commit 71e95654e855402d0b186de7077a44cd565f5596
Author: nikhil1511 <[email protected]>
AuthorDate: Mon Nov 2 18:23:28 2026 +0530

    CodePageUtil: return Cp1256 for CP_WINDOWS_1256 when javaLangFormat is true 
(#1517)
    
    CP_WINDOWS_1256 (1256, Arabic) returned "Cp1255" (Hebrew) in the
    javaLangFormat branch while returning "windows-1256" in the NIO branch.
    
    Closes #1513
    
    Generated-by: Google Gemini
---
 poi/src/main/java/org/apache/poi/util/CodePageUtil.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/poi/src/main/java/org/apache/poi/util/CodePageUtil.java 
b/poi/src/main/java/org/apache/poi/util/CodePageUtil.java
index b89fba871b..be78d9feb0 100644
--- a/poi/src/main/java/org/apache/poi/util/CodePageUtil.java
+++ b/poi/src/main/java/org/apache/poi/util/CodePageUtil.java
@@ -323,7 +323,7 @@ public class CodePageUtil
                     return "windows-1255";
             case CP_WINDOWS_1256:
                 if (javaLangFormat)
-                    return "Cp1255";
+                    return "Cp1256";
                 else
                     return "windows-1256";
             case CP_WINDOWS_1257:


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to