Opened 11 years ago

Closed 7 years ago

Last modified 7 years ago

#473 closed defect (discarded)

using locale "de_DE.UTF-8" causes misbehavior

Reported by: westram Owned by: westram
Priority: major Milestone:
Component: no idea Version: gtkport
Keywords: Cc:

Description

  • currently only critical in branch gtk_only
  • misbehavior can be triggered
    • by setting german locale and calling setlocale(LC_ALL, ""); (which is done by gtk) or
    • by directly calling setlocale(LC_ALL, "de_DE.UTF-8");
  • to trigger misbehavior in unit-tests enable the appropriate section in arb_main.h

TODO

  • fix unit tests
  • always call setlocale(LC_ALL, ""); in start_of_main(), forcing same locale-usage as gtk does

Change History (11)

comment:1 Changed 11 years ago by westram

  • Owner changed from devel to westram
  • Status changed from new to assigned

comment:2 Changed 11 years ago by westram

  • Milestone set to arb6
  • Priority changed from critical to major

comment:3 Changed 10 years ago by westram

  • Status changed from assigned to _started

comment:4 Changed 10 years ago by westram

  • Milestone changed from arb6 to arb6.1

comment:5 Changed 10 years ago by westram

currently hardcoded in gtk-version (see [12264])

comment:6 Changed 10 years ago by westram

  • Status changed from _started to assigned

comment:7 follow-up: Changed 10 years ago by epruesse

The problem is that ARB uses sprintf to convert floating point numbers to string. E.g. the internal tree representation is messed up if LC_NUMERIC is DE.

Might be a larger project to find all instances of this… Not sure it's that important to allow other locales. ARB's all English anyway and will stay that way.

comment:8 in reply to: ↑ 7 Changed 10 years ago by westram

Replying to epruesse:

The problem is that ARB uses sprintf to convert floating point numbers to string. E.g. the internal tree representation is messed up if LC_NUMERIC is DE.

AFAIK glib has some functions to handle these problems LC-independently w/o having to set LC_NUMERIC to "C", e.g.: g_ascii_strtod()

Might be a larger project to find all instances of this… Not sure it's that important to allow other locales. ARB's all English anyway and will stay that way.

I'm not sure if/how LC_ALL influences ARBs capability to store utf-8 data (I know nothing about all this).

comment:9 Changed 9 years ago by westram

  • Milestone changed from arb6.1 to arb6.2

comment:10 Changed 7 years ago by westram

  • Resolution set to discarded
  • Status changed from assigned to closed

gtk-port is dead

comment:11 Changed 7 years ago by westram

  • Milestone arb6.2 deleted

remove gtkport tickets from milestones

Note: See TracTickets for help on using tickets.