Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 284403 - sys-apps/sed-4.2.1: hang when using locale zh_CN.GBK on some openoffice files
Summary: sys-apps/sed-4.2.1: hang when using locale zh_CN.GBK on some openoffice files
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-10 04:36 UTC by Zer4tul
Modified: 2010-10-14 18:34 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
openoffice.org-base.desktop (openoffice.org-base.desktop,22.07 KB, text/plain)
2010-10-14 03:23 UTC, SpanKY
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Zer4tul 2009-09-10 04:36:59 UTC
when emerging app-office/openoffice-bin, if the locale is zh_CN.GBK , it will hangs up. The screen output seems like this:
>>> Emerging (6 of 14) app-office/openoffice-bin-3.1.1
 * OOo_3.1.1_LinuxIntel_install_en-US.tar.gz RMD160 SHA1 SHA256 size ;-) ...                                            [ ok ]
 * OOo_3.1.1rc2_20090820_LinuxIntel_langpack_zh-CN.tar.gz RMD160 SHA1 SHA256 size ;-) ...                               [ ok ]
 * checking ebuild checksums ;-) ...                                                                                    [ ok ]
 * checking auxfile checksums ;-) ...                                                                                   [ ok ]
 * checking miscfile checksums ;-) ...                                                                                  [ ok ]
>>> Unpacking source...
>>> Unpacking OOo_3.1.1_LinuxIntel_install_en-US.tar.gz to /var/tmp/portage/app-office/openoffice-bin-3.1.1/work
>>> Unpacking OOo_3.1.1rc2_20090820_LinuxIntel_langpack_zh-CN.tar.gz to /var/tmp/portage/app-office/openoffice-bin-3.1.1/work
>>> Source unpacked in /var/tmp/portage/app-office/openoffice-bin-3.1.1/work
>>> Compiling source in /var/tmp/portage/app-office/openoffice-bin-3.1.1/work/OOO310_m19_native_packed-1_en-US.9420/RPMS ...
>>> Source compiled.
>>> Test phase [not enabled]: app-office/openoffice-bin-3.1.1

>>> Install openoffice-bin-3.1.1 into /var/tmp/portage/app-office/openoffice-bin-3.1.1/image/ category app-office
 * Installing OpenOffice.org into build root...



Reproducible: Always

Steps to Reproduce:
1. export LC_ALL="zh_CN.GBK" emerge openoffice-bin

Actual Results:  
hangs up at " * Installing OpenOffice.org into build root..." and the command line "sed -i -e s/openoffice.org3/ooffice/g openoffice.org-3.desktop" uses up all cpu resources as it can.

Expected Results:  
complete the installation

not only zh_CN.GBK, but also some other locale can reproduce this problem, like ja_JP.EUC-JP.

the sed command line "sed -i -e s/openoffice.org3/ooffice/g openoffice.org-3.desktop" hangs at the line started by "GenericName[bg]" in openoffice.org-3.desktop.

TO FIX THIS:
export LC_ALL=zh_CN.UTF-8 emerge openoffice-bin

and it will work.
Comment 1 Peter Alfredsen (RETIRED) gentoo-dev 2009-09-10 20:12:55 UTC
Assigning to base-system, looks like another "weird locales make stuff go bump in the night" bug.
Comment 2 SpanKY gentoo-dev 2010-10-14 03:23:02 UTC
Created attachment 250517 [details]
openoffice.org-base.desktop

to reproduce:
  LC_ALL=zh_CN.GBK sed '' openoffice.org-base.desktop
Comment 3 SpanKY gentoo-dev 2010-10-14 03:31:33 UTC
e-mailed upstream about the issue.  apparently they dont have any bug trackers.
Comment 4 SpanKY gentoo-dev 2010-10-14 18:34:41 UTC
ive added a fix from upstream sed git to 4.2.1-r1 and sed now longer hangs for me