Incorrect delimiter on pt_BR

Bug #1101134 reported by Thaynã Moretti
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
GLibC
Fix Released
Medium
langpack-locales (Ubuntu)
Fix Released
Low
Gunnar Hjalmarsson

Bug Description

The delimiter is incorrect on pt_BR locale.

$ export LANG=pt_BR
$ date +%x
17-01-2013

According to Wikipedia (http://en.wikipedia.org/wiki/Date_format_by_country), the delimiter are slashes, and not hyphens.

-- version info --
$ lsb_release -rd
Description: Ubuntu 12.04 LTS
Release: 12.04

Thaynã Moretti (izn)
description: updated
tags: added: patch
Changed in langpack-locales (Ubuntu):
assignee: nobody → Gunnar Hjalmarsson (gunnarhj)
importance: Undecided → Low
status: New → In Progress
Revision history for this message
Gunnar Hjalmarsson (gunnarhj) wrote :
Revision history for this message
Martin Pitt (pitti) wrote :

Thanks Gunnar! Uploaded.

Changed in langpack-locales (Ubuntu):
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

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

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

  * debian/patches/ubuntu-pt_BR-d_fmt.patch:
    Changed d_fmt delimiter from - to / (LP: #1101134).
  * debian/patches/ubuntu-tr_TR-currency_symbol.patch:
    Changed the currency symbol from YTL to TL (LP: #1242416).
  * debian/patches/ubuntu-lv_LV-currency.patch:
    Changed to currency EUR/€ (LP: #1264551).
 -- Gunnar Hjalmarsson <email address hidden> Sun, 28 Sep 2014 23:11:00 +0200

Changed in langpack-locales (Ubuntu):
status: Fix Committed → Fix Released
Changed in glibc:
importance: Unknown → Medium
status: Unknown → Confirmed
Changed in glibc:
status: Confirmed → Fix Released
Revision history for this message
Thaynã Moretti (izn) wrote :

I think we got a new "bug".

$ export LANG=pt_BR
$ date +%x
04/13/18

Brazil's default: 13/04/18

Revision history for this message
Gunnar Hjalmarsson (gunnarhj) wrote :

Nope. pt_BR refers to the Brazilian latin1 locale, and if that has not been generated (it hasn't usually), the system falls back to the C locale.

$ LC_TIME=C date +%x
04/14/18
$ LC_TIME=pt_BR.UTF-8 date +%x
14/04/2018

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

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.