Modify

Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#20785 closed enhancement (fixed)

Improve Status Report when locale "Arabic(Saudi Arabia)" is used

Reported by: GerdP Owned by: team
Priority: normal Milestone: 21.04
Component: Core Version:
Keywords: Cc: Don-vip, stoecker

Description

Follow up of #20784
Status report contains several lines where Arabic–Hindu numerals are displayed instead of Arabic numbers when user has configured the OS to use "Arabic(Saudi Arabia)"

The status report should contain a clear hint that such a "problematic" locale is used.
Not sure how to report that, maybe simple as this?

text.format("Numbers with local locale: %s -> %d%n", Integer.toString(1_234_567_890) , 1_234_567_890);

Attachments (2)

20785.patch (2.6 KB ) - added by GerdP 4 years ago.
20785.2.patch (2.6 KB ) - added by GerdP 4 years ago.
add Locale.getDefault().toString()

Download all attachments as: .zip

Change History (10)

by GerdP, 4 years ago

Attachment: 20785.patch added

comment:1 by GerdP, 4 years ago

Patch fixes those places where Arabic–Hindu numbers appear in the status report of #20784 and adds the suggested hint.

by GerdP, 4 years ago

Attachment: 20785.2.patch added

add Locale.getDefault().toString()

comment:2 by GerdP, 4 years ago

20785.2.patch adds two lines to status report. Example output for JOSM called with JRE options -Duser.country=SA -Duser.language=ar:

Locale info ar_SA
Numbers with default locale: 1234567890 -> ١٢٣٤٥٦٧٨٩٠

comment:3 by GerdP, 4 years ago

Cc: Don-vip stoecker added
Milestone: 21.04
Type: defectenhancement

comment:4 by GerdP, 4 years ago

Summary: Improve Status Report when "Arabic(Saudi Arabia)" i used in Regional Setting in WindowsImprove Status Report when "Arabic(Saudi Arabia)" is used in Regional Setting in Windows

comment:5 by GerdP, 4 years ago

Summary: Improve Status Report when "Arabic(Saudi Arabia)" is used in Regional Setting in WindowsImprove Status Report when locale "Arabic(Saudi Arabia)" is used

comment:6 by GerdP, 4 years ago

Resolution: fixed
Status: newclosed

In 17820/josm:

fix #20785: Improve Status Report when locale "Arabic(Saudi Arabia)" is used

  • use Locale.ROOT for String.format
  • report locate details and digits 0..9 with Locale.getDefault()

comment:7 by mdk, 4 years ago

In r17811 (see #20784) similar problems are solved with Locale.ENGLISH. Wouldn't it be better to use always the same solution (Locale.ROOT)?

in reply to:  7 comment:8 by simon04, 4 years ago

@mdk, I've created a separate ticket: #20805

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.