<?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>70592</bug_id>
          
          <creation_ts>2004-11-09 09:52 0000</creation_ts>
          <short_desc>mpg123 0.59s-r6 makes tty malfunction, requiring a reset</short_desc>
          <delta_ts>2005-08-13 05:42:26 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>Applications</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>veneroso_dc@hotmail.com</reporter>
          <assigned_to>sound@gentoo.org</assigned_to>
          <cc>kero@matfyz.cz</cc>

      

      
          <long_desc isprivate="0">
            <who>veneroso_dc@hotmail.com</who>
            <bug_when>2004-11-09 09:52:25 0000</bug_when>
            <thetext>When starting mpg123 like this:

mpg123 --list playlist.m3u --shuffle --random --control

Upon exiting mpg123, the terminal does not echo back typed text or command history.  The only remedy that I know of is to type &apos;reset&apos;.  

This behaviour only seems to become apparent when run with the --control option.  If q is pressed while playing the first song, then it exits to the terminal normailly, but if you first press f (or even ctrl-c) to skip to the next song, then press q the terminal malfunctions.  It also malfunctions if its allowed to progress to the next song normally and then exit by pressing q.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>veneroso_dc@hotmail.com</who>
            <bug_when>2005-01-29 15:34:56 0000</bug_when>
            <thetext>Well, after no replys, this bug either cannot be fixed, or cannot be verified.

I only discovered it because my monitor failed and my only recorse was to access my box via a remote terminal.  It was an older machine, but I still wanted to be able to hear my music while I was forced to use the other one.  I have since purchased a new monitor, and this is of little priority to me.  I did notice that there is a new version of this package, and I have decided to test it.  Below are my results:

media-sound/mpg123-0.59s-r9

Same problems, reset must be executed to return to normal operation.

I can remove most of the headaches if i add &amp;&amp; reset at the end of the command line.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>kero@matfyz.cz</who>
            <bug_when>2005-05-30 11:58:41 0000</bug_when>
            <thetext>*** Bug 94494 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>balrogg@gmail.com</who>
            <bug_when>2005-06-10 07:11:41 0000</bug_when>
            <thetext>Created an attachment (id=60986)
Patch to avoid terminal line settings be set more than once

(In reply to comment #0)

This is because in -C mode term_init() is called everytime a new songs starts
playing, so the first run of term_init() saves the original terminal line
properties in a variable but when playing a second song the value gets
overwritten. It also results in registering term_restore() with atexit() as
many times as songs were played, but term_restore() has a check that avoids
executing it more than once.
I attached a patch that fixes it by adding the same check to term_init().</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>balrogg@gmail.com</who>
            <bug_when>2005-08-07 19:02:44 0000</bug_when>
            <thetext>Created an attachment (id=65376)
Plain-text of the above patch

I realized it shouldn&apos;t be gzipped so i&apos;m posting the plain-text version of the
patch.
It would be good if someone added it to the ebuild cause the bug can be really
annoying and it&apos;s easy to verify, although not many people use the -C option.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>chainsaw@gentoo.org</who>
            <bug_when>2005-08-13 05:42:26 0000</bug_when>
            <thetext>This is in portage; Andrzej, thanks for your work.</thetext>
          </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>60986</attachid>
            <date>2005-06-10 07:11 0000</date>
            <desc>Patch to avoid terminal line settings be set more than once</desc>
            <filename>mpg123-pre0.59sbalrog.patch.gz</filename>
            <type>text/plain</type>
            <data encoding="base64">H4sICNmEqEIAA21wZzEyMy1wcmUwLjU5c2JhbHJvZy5wYXRjaABlUk1z0zAQPaNf8bgwzjg2jvNF
k8Kkw50TJy6MbK8dgS15pE3TlP54VqlhWtBBo13te/v2SUx++G6s4WQGE1DrvqcGdE/+wmYgaFg6
IzjbIbD2HDD2+mIkNBbZZwyuIRUcnO0v0C2TBx8JrfGBn2GtsIcjhTl0ELpgGgK1LdV8rXTedMbq
Xgl0iAf0xhJG70bybCjgTJ7QEXPs6kTZ2RtmstC2iRSeWicVsUxZx/AUWBJy5151wL3uT5Tjrhe9
/2uJRkzQZKbO+q8Zchq0vSD6EWIUx5pkRTOokdEY9GA4x1dpOGquj6o1D1LOR3G1uqCf9EdBkosE
lfR+oPrE0uNqn7M15erONv6RfuCbrpx35/DT4LbSvXfd4TGmcue7T0o1pm2RfdEnj2HsFuXyfZwg
r6eomkKVZdnrgjdlURTZosiWBRbb3Wq9W6zy4s9CGneVpuk/RBG2zopNVtxE2LrcrW7y7Wa1WJbl
ZjXBDgdk5Xq+RSr7BxwOCr8UIF/HnyaPjRNTjNsrqAzPrpPVVU/4iGKvUsC0SF7mn57wdtReD/k1
W7PvZ7EO8tJ88jZSSaA5vkDy8h1n+3hh2oRr+T+a2SfF/J10n+EWxUy0/QaPvlP+/wIAAA==
</data>        

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>65376</attachid>
            <date>2005-08-07 19:02 0000</date>
            <desc>Plain-text of the above patch</desc>
            <filename>mpg123-pre0.59sbalrog.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">dGVybV9pbml0KCkgaXMgY2FsbGVkIGV2ZXJ5dGltZSBhIG5ldyBzb25nIHN0YXJ0cyBwbGF5aW5n
IGluIC1DIG1vZGUKc28gb25seSBhZnRlciB0aGUgZmlyc3Qgc29uZyBmaW5pc2hlcywgYXMgYSBz
aWRlIGVmZmVjdCB0aGUgb3JpZ2luYWwKdGVybWluYWwgbGluZSBwcm9wZXJ0aWVzIHdlcmUgZ2V0
dGluZyBvdmVyd3JpdHR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