<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>92735</bug_id>
          
          <creation_ts>2005-05-15 14:10 0000</creation_ts>
          <short_desc>slang makes mc coredumps on exit</short_desc>
          <delta_ts>2005-05-16 07:48:44 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Library</component>
          <version>2005.0</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>kir@sacred.ru</reporter>
          <assigned_to>lanius@gentoo.org</assigned_to>
          <cc>usata@gentoo.org</cc>
    
    <cc>utf8@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>kir@sacred.ru</who>
            <bug_when>2005-05-15 14:10:38 0000</bug_when>
            <thetext>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&apos;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
mc
(press F10 and Enter)

4. See mc crash.

Solution
--------

Rebuild slang with the attached patch.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>kir@sacred.ru</who>
            <bug_when>2005-05-15 14:17:15 0000</bug_when>
            <thetext>Created an attachment (id=58972)
slang patch fixing mc coredump

This patch is taken from Fedora Core 3</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>kir@sacred.ru</who>
            <bug_when>2005-05-15 14:26:27 0000</bug_when>
            <thetext>utf-8 team might be interested, as this is definitely UTF-8 related bug.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>kir@sacred.ru</who>
            <bug_when>2005-05-15 14:26:51 0000</bug_when>
            <thetext>You might me interested as well.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>lanius@gentoo.org</who>
            <bug_when>2005-05-16 07:48:44 0000</bug_when>
            <thetext>added to slang-1.4.9-r2</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>58972</attachid>
            <date>2005-05-15 14:17 0000</date>
            <desc>slang patch fixing mc coredump</desc>
            <filename>slang-1.4.5-utf8-segv.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">ZGlmZiAtcnUgc2xhbmctMS40LjUvc3JjL3Nsc21nLmMgc2xhbmctMS40LjUtbmV3L3NyYy9zbHNt
Zy5jCi0tLSBzbGFuZy0xLjQuNS9zcmMvc2xzbWcuYwkyMDAyLTA3LTI1IDAwOjA5OjAwLjAwMDAw
MDAwMCAtMDQwMAorKysgc2xhbmctMS40LjUtbmV3L3NyYy9zbHNtZy5jCTIwMDItMDctMjUgMDA6
MDQ6MDIuMDAwMDAwMDAwIC0wNDAwCkBAIC0zNjksNyArMzY5LDEwIEBACiAKICAgbWF4X2xlbiA9
IFN0YXJ0X0NvbCArIFNjcmVlbl9Db2xzOwogICBsZW4gPSBUaGlzX0NvbDsKLSAgcCA9IFNMX1Nj
cmVlbltUaGlzX1JvdyAtIFN0YXJ0X1Jvd10ubmVldyArIGxlbiAtIFN0YXJ0X0NvbDsKKworICAg
ICAgIAorICBwID0gU0xfU2NyZWVuW1RoaXNfUm93IC0gU3RhcnRfUm93XS5uZWV3OworICBpZiAo
bGVuID4gU3RhcnRfQ29sKSBwICs9IGxlbiAtIFN0YXJ0X0NvbDsKICAgcHJldiA9IDA7CiAKICAg
Zm9yIChpID0gMDsgaSA8IG47IGkrKywgc3RyKSB7Cg==
</data>        

          </attachment>
    </bug>

</bugzilla>