Bug 4897

Summary: rpm doesn't use language "sv" when LANG is sv_SE
Product: [Retired] Red Hat Linux Reporter: Göran Uddeborg <goeran>
Component: rpmAssignee: David Lawrence <dkl>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: low    
Version: 6.0   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 1999-12-05 21:09:04 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Göran Uddeborg 1999-09-03 21:35:36 UTC
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
"sv".

Comment 1 Jeff Johnson 1999-09-04 00:17:59 UTC
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
	LANG=sv_SE.iso8859-1:sv
which should work in other versions of rpm-3.0.x