[haiku-bugs] Re: [Haiku] #13618: Haiku lacks support for a locale-sensitive decimal point.

  • From: "pulkomandy" <trac@xxxxxxxxxxxx>
  • Date: Mon, 24 Jul 2017 09:25:09 -0000

#13618: Haiku lacks support for a locale-sensitive decimal point.
-------------------------+-------------------------------------------------
   Reporter:  owenca     |      Owner:  pulkomandy
       Type:  bug        |     Status:  closed
   Priority:  normal     |  Milestone:  R1/beta1
  Component:             |    Version:  R1/Development
  Kits/Locale Kit        |   Keywords:  BFormattingConventions,
 Resolution:  no change  |  BFloatFormat,
  required               |  BGenericNumberFormat::FractionSeparator()
 Blocked By:             |   Blocking:
Has a Patch:  0          |   Platform:  All
-------------------------+-------------------------------------------------
Changes (by pulkomandy):

 * status:  new => closed
 * resolution:   => no change required


Comment:

 After discussing this on IRC and some research, the decimal point support
 is working fine, however:

 * you need to select a locale in the "formatting" tab in locale
 preferences. This is independant from the language so that numbers always
 use the same format, no matter which language are available in the apps
 you run. Switching from YY/MM/YYYY to MM/DD/YYYY, or from dot as decimal
 and thousand separator, could lead to confusion, so a single setting for
 number format is desirable.
 * strtod and other C functions will ignore the settings unless the LC_*
 environment variables are set (not the case for GUI apps by default). But,
 using the Locale Kit (BNumberFormat in this case) will work fine.

--
Ticket URL: <https://dev.haiku-os.org/ticket/13618#comment:3>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.

Other related posts: