month name in string localized using wrong type of locale produces mixed-language message

Bug #511890 reported by Per Ångström
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
synaptic (Ubuntu)
Fix Released
Low
Jean-Baptiste Lallement

Bug Description

Binary package hint: synaptic

In Synaptic I can see strange text such as: "Canonical provides critical updates for git-doc until juli 2011." NB: "juli", not "July" as could be expected. This is a mix of a string in English with the name of the month "July" written in my native language Swedish.

I think the reason is that synaptic looks up the name of the month using a different locale than the locale of the text. In the case of running text, where the name of the month is embedded with other text, I think it is wrong to do so.

These are my locale settings:
LANG=en_US.utf8
LANGUAGE=en_US.utf8
LC_CTYPE=sv_SE.utf8
LC_NUMERIC=sv_SE.utf8
LC_TIME=sv_SE.utf8
LC_COLLATE=sv_SE.utf8
LC_MONETARY=sv_SE.utf8
LC_MESSAGES=en_US.utf8
LC_PAPER=sv_SE.utf8
LC_NAME=sv_SE.utf8
LC_ADDRESS=sv_SE.utf8
LC_TELEPHONE=sv_SE.utf8
LC_MEASUREMENT=sv_SE.utf8
LC_IDENTIFICATION=sv_SE.utf8
LC_ALL=

ProblemType: Bug
Architecture: amd64
Date: Sun Jan 24 13:01:20 2010
DistroRelease: Ubuntu 10.04
Package: synaptic 0.63ubuntu2
ProcVersionSignature: Ubuntu 2.6.32-11.15-generic
SourcePackage: synaptic
Uname: Linux 2.6.32-11-generic x86_64

Related branches

Revision history for this message
Per Ångström (autark) wrote :
Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

Thanks for your report.

You are right. It is because you have LC_TIME=sv_SE.utf8, it displays the date in this locale. So, it's working as expected even if it looks a bit weird.
I'm closing this report because it is not a bug in synaptic.

Don't hesitate to submit any new bug.

Changed in synaptic (Ubuntu):
status: New → Won't Fix
Revision history for this message
Per Ångström (autark) wrote : Re: [Bug 511890]

But I don't agree that LC_TIME should be used here. I have an English
language preference and then I expect text to be in English, not in a
mixture of languages.

Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

Hi Per,

Fingers are typing faster than mind I'm afraid. You're right, in this context, it makes sense to treat date/time as messages and use the same locale.
Setting to triaged.

Thanks.

Changed in synaptic (Ubuntu):
importance: Undecided → Low
status: Won't Fix → Triaged
Revision history for this message
Per Ångström (autark) wrote :

Jean-Baptiste, merci beaucoup! (Thanks a lot!)

Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

Fixed in bzr 1712

Changed in synaptic (Ubuntu):
assignee: nobody → Jean-Baptiste Lallement (jibel)
status: Triaged → Fix Committed
Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

fixed in 0.63.1ubuntu3
synaptic (0.63.1ubuntu3) lucid; urgency=low

  [ Jean-Baptiste Lallement ]
  * * gtk/rgpreferenceswindow.cc: escape '@/:%' in proxy auth string (LP: 130289)
  * Sort by relevancy when doing quicksearch and no search column is set.
  * debian/patches/10_ubuntu_maintenance_gui.dpatch:
  - Fix mixed-language maintenance status when LC_TIME differs from LC_MESSAGES
    (LP: 511890)

Changed in synaptic (Ubuntu):
status: Fix Committed → Fix Released
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.