| Summary: | /usr/lib/rpm/rpm2cpio.sh fails in zh_TW locale (and probably others) | ||
|---|---|---|---|
| Product: | Mageia | Reporter: | Joseph Wang <joequant> |
| Component: | RPM Packages | Assignee: | Thierry Vignaud <thierry.vignaud> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | Normal | CC: | pterjan, thierry.vignaud |
| Version: | Cauldron | ||
| Target Milestone: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | MGA5TOO | ||
| Source RPM: | rpm-4.11.2-6.mga5.src.rpm | CVE: | |
| Status comment: | |||
| Attachments: | fix rpm2cpio.sh | ||
|
Description
Joseph Wang
2014-07-01 16:57:41 CEST
I can try later but can you run those commands?
echo . | awk '{ printf("%c%c", 0x1f, 0x8b); }' | od -x
echo . | awk '{ printf("%cLZ", 0xff); }' | od -x
echo . | awk '{ printf("%c7z", 0xfd); }' | od -x
I would tend to blame Big5 :)CC:
(none) =>
pterjan So I was wrong:
$ echo . | awk '{ printf("%c%c", 0x1f, 0x8b); }' | od -x
0000000 8b1f
0000002
$ echo . | LANG=zh_TW.UTF-8 awk '{ printf("%c%c", 0x1f, 0x8b); }' | od -x
0000000 c21f 008b
0000003
Thierry Vignaud
2014-07-01 17:32:03 CEST
CC:
(none) =>
thierry.vignaud
Samuel Verschelde
2015-05-31 23:29:01 CEST
Whiteboard:
(none) =>
MGA5TOO Actually there was a fix for it upstream in 2012: https://bugzilla.redhat.com/show_bug.cgi?id=878363 But it's still broken on mga (though it works on FC24, but with different versions of glibc & gawk). Its' broken for ar, br, el, fr, pl, zh_TW now... Created attachment 8577 [details] fix rpm2cpio.sh This patch fixes it for me Alternatively, using the upstream refactoring works as fine: http://rpm.org/gitweb?p=rpm.git;a=commitdiff;h=19dbaff8dd051688c0acf1b6605bf13a7fe019bd Fixed in SVN Status:
NEW =>
RESOLVED |