[ 
https://issues.apache.org/jira/browse/WW-5360?focusedWorklogId=902087&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-902087
 ]

ASF GitHub Bot logged work on WW-5360:
--------------------------------------

                Author: ASF GitHub Bot
            Created on: 27/Jan/24 13:49
            Start Date: 27/Jan/24 13:49
    Worklog Time Spent: 10m 
      Work Description: sonarcloud[bot] commented on PR #852:
URL: https://github.com/apache/struts/pull/852#issuecomment-1913161248

   ## [![Quality Gate 
Passed](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/checks/QualityGateBadge/qg-passed-20px.png
 'Quality Gate 
Passed')](https://sonarcloud.io/dashboard?id=apache_struts&pullRequest=852) 
**Quality Gate passed**  
   Kudos, no new issues were introduced!
   
   [0 New 
issues](https://sonarcloud.io/project/issues?id=apache_struts&pullRequest=852&resolved=false&inNewCodePeriod=true)
  
   [0 Security 
Hotspots](https://sonarcloud.io/project/security_hotspots?id=apache_struts&pullRequest=852&resolved=false&inNewCodePeriod=true)
  
   [100.0% Coverage on New 
Code](https://sonarcloud.io/component_measures?id=apache_struts&pullRequest=852&metric=new_coverage&view=list)
  
   [0.0% Duplication on New 
Code](https://sonarcloud.io/component_measures?id=apache_struts&pullRequest=852&metric=new_duplicated_lines_density&view=list)
  
     
   [See analysis details on 
SonarCloud](https://sonarcloud.io/dashboard?id=apache_struts&pullRequest=852)
   
   




Issue Time Tracking
-------------------

    Worklog Id:     (was: 902087)
    Time Spent: 50m  (was: 40m)

> Struts 2 and JDK 17 numbers in locale
> -------------------------------------
>
>                 Key: WW-5360
>                 URL: https://issues.apache.org/jira/browse/WW-5360
>             Project: Struts 2
>          Issue Type: Improvement
>          Components: Core
>    Affects Versions: 6.3.0
>            Reporter: Alireza Fattahi
>            Priority: Major
>             Fix For: 6.4.0
>
>          Time Spent: 50m
>  Remaining Estimate: 0h
>
> With struts `6.3.0.1` and jdk 8 in locale `fa_IR` the below generates `1, 2, 
> 3,`
>  
> {code:java}
>          <s:iterator begin="1" end="3">
>                     <s:property value="top"/>,
>          </s:iterator>{code}
>  
> By upgrading to jdk 17 It generates `۱, ۲, ۳,` ( these are Persian numbers 
> for `1, 2, 3,`)  
>  
> I have asked it at 
> [https://stackoverflow.com/questions/77250075/struts-2-and-jdk-17-numbers-in-locale]
>  and got a workaround by Roman C.
>  
> How ever I think this is something that could be fixed. Developers most of 
> the times, use `s:iterator` to generate numbers which will be used in their 
> code, not to show them to user. 
> So for example a loop which generates 10 inputboxs with names as `inputbox_1, 
> inputbox-2 ... `  will now generate `inputbox_۱, inputbox-۲ ... `.. lots of 
> things need to be changed. ( The JavaScript which you developed base on 
> English number, the name of the variables which was set in action ...)
> I suggest that the `s:iterator` always generates English number, or at list 
> has a property that can be configured. Or even we can configure this behavior 
> globally with an `struts.xml`.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to