Bug 107846

Summary: locale utility is broken on big-endian 64-bit platforms
Product: Red Hat Enterprise Linux 3 Reporter: Matt Wilson <msw>
Component: glibcAssignee: Jakub Jelinek <jakub>
Status: CLOSED ERRATA QA Contact: Brian Brock <bbrock>
Severity: high Docs Contact:
Priority: high    
Version: 3.0   
Target Milestone: ---   
Target Release: ---   
Hardware: s390x   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2003-11-14 15:14:01 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:
Bug Depends On:    
Bug Blocks: 106472    

Description Matt Wilson 2003-10-23 18:43:40 UTC
Description of problem:
on-disk locale format seems incompatible with s390x glibc.  It is compatible
only with s390 glibc library.

Version-Release number of selected component (if applicable):
glibc-2.3.2-95.3.s390x.rpm
glibc-common-2.3.2-95.3.s390x.rpm

How reproducible:
Steps to Reproduce:
[root@fido foo]# file /usr/bin/locale
/usr/bin/locale: ELF 64-bit MSB executable, version 1 (SYSV), for GNU/Linux
2.4.0, dynamically linked (uses shared libs), stripped
[root@fido foo]# LANG=en_US.UTF-8 /usr/bin/locale -k week-1stday
week-1stday=0
[root@fido foo]# file ./usr/bin/locale
./usr/bin/locale: ELF 32-bit MSB executable, version 1 (SYSV), for GNU/Linux
2.2.10, dynamically linked (uses shared libs), stripped
[root@fido foo]# LANG=en_US.UTF-8 ./usr/bin/locale -k week-1stday
week-1stday=19971201

Actual results:
week-1stday=0

Expected results:
week-1stday=19971201

Additional info:
LSB certification blocking issue for s390x

Comment 1 Matt Wilson 2003-10-23 19:25:57 UTC
also affects ppc64


Comment 3 Jakub Jelinek 2003-10-27 19:04:29 UTC
Fix is in glibc-2.3.2-95.4.

Comment 4 Brock Organ 2003-11-11 21:22:15 UTC
verified fixed in erratum RHSA-2003:334 with glibc-2.3.2-95.6 on ppc64
and s390x ... 

Comment 5 Mark J. Cox 2003-11-11 21:30:27 UTC
(leaving open until RHSA-2003:334 is released)

Comment 6 Jakub Jelinek 2003-11-14 15:14:01 UTC
An errata has been issued which should help the problem described in this bug report. 
This report is therefore being closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files, please follow the link below. You may reopen 
this bug report if the solution does not work for you.

http://rhn.redhat.com/errata/RHSA-2003-334.html