Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 92735 - slang makes mc coredumps on exit
Summary: slang makes mc coredumps on exit
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All All
: High major (vote)
Assignee: Heinrich Wendel (RETIRED)
Depends on:
Reported: 2005-05-15 14:10 UTC by Kir Kolyshkin
Modified: 2005-05-16 07:48 UTC (History)
2 users (show)

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

slang patch fixing mc coredump (slang-1.4.5-utf8-segv.patch,487 bytes, patch)
2005-05-15 14:17 UTC, Kir Kolyshkin
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kir Kolyshkin 2005-05-15 14:10:38 UTC
I had a problem with app-misc/mc built with slang (unicode enabled). When I use mc in utf-8 terminal with utf-8 locale (LANG=ru_RU.utf-8) it crashes on exit leaving terminal in black-and-white state.

I took a look to slang shipped with Fedora Core 3 and found one tiny slang patch which is missing from Gentoo's slang-1.4.9-r1.ebuild (patch name is slang-1.4.5-utf8-segv.patch). I have created slang-1.4.9-r2 with this patch added and found out the problem with mc is now gone. So I think it makes sense to add this patch.

How to reproduce
1. Build slang and mc with the following USE flags:
sys-libs/slang-1.4.9-r2  -cjk +unicode
app-misc/mc-4.6.0-r13  +X -debug +gpm -ncurses +nls +samba +slang +unicode

2. Open X terminal (I used both gnome-terminal and uxterm)

3. export LANG=ru_RU.utf8
(press F10 and Enter)

4. See mc crash.


Rebuild slang with the attached patch.
Comment 1 Kir Kolyshkin 2005-05-15 14:17:15 UTC
Created attachment 58972 [details, diff]
slang patch fixing mc coredump

This patch is taken from Fedora Core 3
Comment 2 Kir Kolyshkin 2005-05-15 14:26:27 UTC
utf-8 team might be interested, as this is definitely UTF-8 related bug.
Comment 3 Kir Kolyshkin 2005-05-15 14:26:51 UTC
You might me interested as well.
Comment 4 Heinrich Wendel (RETIRED) gentoo-dev 2005-05-16 07:48:44 UTC
added to slang-1.4.9-r2