Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 4897 - rpm doesn't use language "sv" when LANG is sv_SE
rpm doesn't use language "sv" when LANG is sv_SE
Product: Red Hat Linux
Classification: Retired
Component: rpm (Show other bugs)
All Linux
low Severity medium
: ---
: ---
Assigned To: David Lawrence
Depends On:
  Show dependency treegraph
Reported: 1999-09-03 17:35 EDT by Göran Uddeborg
Modified: 2008-05-01 11:37 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 1999-12-05 16:09:04 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Göran Uddeborg 1999-09-03 17:35:36 EDT
The LANG variable have a form ll_CC.coding where ll is the
language and CC is the area.  (It is even more complicated,
but we can forget about that rignt now.)  When looking for
message catalogs, the locale function tries shortened
versions of this if it can't find longer.  So if there is a
catalog for "sv" it will be found if I set my LANG to
sv_SE.iso8859-1, for example.

But rpm unfortunately rpm doesn't seem to use the same
algorithm when selecting a description and summary.  So even
though I added a Swedish description to a package, I get the
English default description unless I set LANG to precisely
Comment 1 Jeff Johnson 1999-09-03 20:17:59 EDT
Try rpm-3.0.3-0.19 from Raw Hide. This problem should be fixed there.

Otherwise, you should be able to do something like
which should work in other versions of rpm-3.0.x

Note You need to log in before you can comment on or make changes to this bug.