[SRU] thousands separator and decimal separator wrong in es_GT

Bug #1074797 reported by Gonzalo Palarea on 2012-11-04
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
langpack-locales (Ubuntu)
Medium
Gunnar Hjalmarsson
Trusty
Medium
Unassigned

Bug Description

trusty SRU request
==================

Please add a trusty task on both this bug report and bug #997248.

[Impact]
The LC_NUMERIC formats are imported from the es_ES locale to several Latin American locales with other conventions for thousands_sep and decimal_point, which results in incorrect number formating.

Quoting from bug #997248: "This problem is seen when I try to use the calculator, or other gnome program that involves math, it's confusing."

[Test Case]
Before the fix:
$ LC_NUMERIC=es_GT.UTF-8 printf "%'.2f\n" 12345,67
12.345,67

After the fix:
$ LC_NUMERIC=es_GT.UTF-8 printf "%'.2f\n" 12345.67
12,345.67

[Regression Potential]
There might exist scripts that adapts to the current incorrect behavior. Given that 14.04 was recently released, fixing the bug ought to carry greater weight.

[Original description]
In Guatemala the thousands separator is a comma and the decimal separator is a dot. Had to change in /usr/share/i18n/locales/es_GT:

from:
LC_NUMERIC
copy "es_ES"
END LC_NUMERIC

to:
LC_NUMERIC
decimal_point "<U002E>"
thousands_sep "<U002C>"
grouping 3;3
END LC_NUMERIC

then sudo dpkg-reconfigure locales

lsb_release -rd
Description: Ubuntu 12.04.1 LTS
Release: 12.04

Adolfo Jayme (fitojb) on 2014-03-22
Changed in langpack-locales (Ubuntu):
importance: Undecided → Medium
Changed in langpack-locales (Ubuntu):
assignee: nobody → Gunnar Hjalmarsson (gunnarhj)
status: New → In Progress
Gunnar Hjalmarsson (gunnarhj) wrote :
tags: added: patch
Daniel Holbach (dholbach) wrote :

Uploaded to utopic.

Changed in langpack-locales (Ubuntu):
status: In Progress → Fix Committed
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package langpack-locales - 2.13+git20120306-13

---------------
langpack-locales (2.13+git20120306-13) utopic; urgency=low

  * debian/patches/ubuntu-es-decimal_point-thousands_sep.patch:
    Modify thousands separator and decimal point in some Spanish
    locales (LP: #997248, LP: #1074797).
 -- Gunnar Hjalmarsson <email address hidden> Fri, 25 Apr 2014 01:50:00 +0200

Changed in langpack-locales (Ubuntu):
status: Fix Committed → Fix Released
Gunnar Hjalmarsson (gunnarhj) wrote :

Attaching a patch for the trusty SRU request.

Changing status to "In Progress" for now, so the bug re-appears in the sponsorship queue.

Changed in langpack-locales (Ubuntu):
status: Fix Released → In Progress
description: updated
summary: - thousands separator and decimal separator wrong in es_GT
+ [SRU] thousands separator and decimal separator wrong in es_GT
Changed in langpack-locales (Ubuntu):
status: In Progress → Fix Released
Changed in langpack-locales (Ubuntu Trusty):
status: New → Triaged
importance: Undecided → Medium
Brian Murray (brian-murray) wrote :

I've uploaded this to trusty proposed for review by an SRU team member.

Hello Gonzalo, or anyone else affected,

Accepted langpack-locales into trusty-proposed. The package will build now and be available at http://launchpad.net/ubuntu/+source/langpack-locales/2.13+git20120306-12.1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

Changed in langpack-locales (Ubuntu Trusty):
status: Triaged → Fix Committed
tags: added: verification-needed
Gunnar Hjalmarsson (gunnarhj) wrote :

I could reproduce the test case in the bug description by installing package locales 2.13+git20120306-12.1 from trusty-proposed.

tags: added: verification-done
removed: verification-needed
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package langpack-locales - 2.13+git20120306-12.1

---------------
langpack-locales (2.13+git20120306-12.1) trusty-proposed; urgency=low

  * debian/patches/ubuntu-es-decimal_point-thousands_sep.patch:
    Modify thousands separator and decimal point in some Spanish
    locales (LP: #997248, LP: #1074797).
 -- Gunnar Hjalmarsson <email address hidden> Sat, 26 Apr 2014 06:15:00 +0200

Changed in langpack-locales (Ubuntu Trusty):
status: Fix Committed → Fix Released

The verification of the Stable Release Update for langpack-locales has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regresssions.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers