Bug 83611

Summary: rpm -q --changelog date format should be gettextized
Product: [Retired] Red Hat Public Beta Reporter: Nakai <ynakai>
Component: rpmAssignee: Jeff Johnson <jbj>
Status: CLOSED RAWHIDE QA Contact: Mike McLean <mikem>
Severity: medium Docs Contact:
Priority: medium    
Version: phoebeCC: eng-i18n-bugs, wtogami
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2003-04-03 00:10:36 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:
Attachments:
Description Flags
rpm-4.2-datei18n.patch none

Description Nakai 2003-02-06 09:50:34 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; ja-JP; rv:1.2.1) Gecko/20030115

Description of problem:
rpm -q --changelog shows the date entry, but the order should be
gettextized. Each field like '%a', '%b' will be localized by glibc,
but the order should be changed by each application.

--- rpm-4.2/rpmdb/header.c.orig 2003-02-05 19:57:05.000000000 +0900
+++ rpm-4.2/rpmdb/header.c      2003-02-05 20:01:54.000000000 +0900
@@ -3436,7 +3436,7 @@
        /*@modifies formatPrefix @*/
 {
     return realDateFormat(type, data, formatPrefix, padding, element, 
-                         "%a %b %d %Y");
+                         _("%a %b %d %Y"));
 }
 
 /**


Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1. LANG=ja_JP.eucJP rpm -q --changelog rpm
2. the date format is crazy.
3.
    

Additional info:

Comment 1 Nakai 2003-02-06 09:50:55 UTC
Created attachment 89891 [details]
rpm-4.2-datei18n.patch

Comment 2 Jeff Johnson 2003-04-03 00:10:36 UTC
Fixed in CVS, rpm-4.3-0.2 when built (not soon).