<?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>186092</bug_id>
          
          <creation_ts>2007-07-21 12:37 0000</creation_ts>
          <short_desc>sys-devel/flex-2.5.33 uses gettext incorrectly</short_desc>
          <delta_ts>2007-07-30 10:10:14 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>Ebuilds</component>
          <version>unspecified</version>
          <rep_platform>All</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>dushistov@mail.ru</reporter>
          <assigned_to>base-system@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>dushistov@mail.ru</who>
            <bug_when>2007-07-21 12:37:48 0000</bug_when>
            <thetext>On my machine with LANG=ru_RU.UTF-8,
all flex messages looks like &apos;????????&apos;.

This is because of to force gettext work,
should be calls like this
setlocale(LC_CTYPE, &quot;&quot;);
setlocale(LC_MESSAGE, &quot;&quot;);

but flex uses only the second one,

this bug already fixed in flex cvs

Reproducible: Always</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>dushistov@mail.ru</who>
            <bug_when>2007-07-21 12:38:59 0000</bug_when>
            <thetext>Created an attachment (id=125549)
Fix gettex usage pattern

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>dushistov@mail.ru</who>
            <bug_when>2007-07-21 12:40:28 0000</bug_when>
            <thetext>The possible usage of patch, is change in ebuild in such way:
--- flex-2.5.33-r2.ebuild       2007-07-21 16:42:05.000000000 +0400
+++ flex-2.5.33-r3.ebuild       2007-07-21 16:42:20.000000000 +0400
@@ -25,6 +25,7 @@
        epatch &quot;${FILESDIR}&quot;/${PN}-2.5.31-include.patch
        epatch &quot;${FILESDIR}&quot;/${P}-isatty.patch #119598
        epatch &quot;${FILESDIR}&quot;/${P}-pic.patch
+       epatch &quot;${FILESDIR}&quot;/flex-2.5.33-gettext-usage-fix.patch
 }
 
 src_compile() {
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2007-07-21 19:54:47 0000</bug_when>
            <thetext>have you submitted your right upstream as well ?
http://sourceforge.net/projects/flex</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>dushistov@mail.ru</who>
            <bug_when>2007-07-22 06:19:17 0000</bug_when>
            <thetext>(In reply to comment #3)
&gt; have you submitted your right upstream as well ?

As I mentioned above fix already in flex cvs.

&gt; http://sourceforge.net/projects/flex
&gt; 

See 
http://flex.cvs.sourceforge.net/flex/flex/main.c?r1=2.132&amp;view=log

Revision 2.132 - (view) (download) (annotate) - [selected] 
Sat Apr 14 12:27:58 2007 UTC (3 months, 1 week ago) by wlestes 
Branch: MAIN 
Changes since 2.131: +1 -0 lines 
Diff to previous 2.131 
add call to setlocale for ctype as per debian patchset


</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2007-07-30 10:10:14 0000</bug_when>
            <thetext>sorry about that

added to 2.5.33-r3</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>125549</attachid>
            <date>2007-07-21 12:38 0000</date>
            <desc>Fix gettex usage pattern</desc>
            <filename>flex-2.5.33-gettext-usage-fix.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">SW5kZXg6IGZsZXgtMi41LjMzL21haW4uYwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBmbGV4LTIuNS4zMy5vcmln
L21haW4uYworKysgZmxleC0yLjUuMzMvbWFpbi5jCkBAIC0yMTAsNiArMjEwLDcgQEAgaW50IG1h
aW4gKGFyZ2MsIGFyZ3YpCiB7CiAjaWYgRU5BQkxFX05MUwogI2lmIEhBVkVfTE9DQUxFX0gKKwlz
ZXRsb2NhbGUgKExDX0NUWVBFLCAiIik7CiAJc2V0bG9jYWxlIChMQ19NRVNTQUdFUywgIiIpOwog
CXRleHRkb21haW4gKFBBQ0tBR0UpOwogCWJpbmR0ZXh0ZG9tYWluIChQQUNLQUdFLCBMT0NBTEVE
SVIpOwo=
</data>        

          </attachment>
    </bug>

</bugzilla>