<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>4911</bug_id>
          
          <creation_ts>2004-07-28 12:59:12 +0400</creation_ts>
          <short_desc>IGNORECASE с локалью UTF-8</short_desc>
          <delta_ts>2010-06-04 03:55:54 +0400</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>gawk</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>10446</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Renat Sabitov">r_sabitov</reporter>
          <assigned_to name="placeholder@altlinux.org">placeholder</assigned_to>
          <cc>glebfm</cc>
    
    <cc>ldv</cc>
    
    <cc>mike</cc>
    
    <cc>php-coder</cc>
    
    <cc>placeholder</cc>
    
    <cc>vt</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>17604</commentid>
    <comment_count>0</comment_count>
    <who name="Renat Sabitov">r_sabitov</who>
    <bug_when>2004-07-28 12:59:13 +0400</bug_when>
    <thetext>В общем, работает с локалью UTF-8 gawk неверно:
 awk &apos;{IGNORECASE=1;if ($1~&quot;йцу&quot;) print $1;}&apos;
&lt;- йцуккк
-&gt; йцуккк
&lt;- йцу123
&lt;- йцуккк

(символами &lt;- и -&gt; обозначается ввод и вывод соотв.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17631</commentid>
    <comment_count>1</comment_count>
    <who name="inger@altlinux.org">inger</who>
    <bug_when>2004-08-02 12:59:38 +0400</bug_when>
    <thetext>Я так догадываюсь это частный случай той самой не решённой до конца проблемы. 
сделайте пожайлуста testcase для отправки в upstream. 
 </thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17642</commentid>
    <comment_count>2</comment_count>
      <attachid>534</attachid>
    <who name="Renat Sabitov">r_sabitov</who>
    <bug_when>2004-08-02 15:36:25 +0400</bug_when>
    <thetext>Created attachment 534
Скрипт GAWK</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17643</commentid>
    <comment_count>3</comment_count>
      <attachid>535</attachid>
    <who name="Renat Sabitov">r_sabitov</who>
    <bug_when>2004-08-02 15:36:57 +0400</bug_when>
    <thetext>Created attachment 535
Входные данные</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17644</commentid>
    <comment_count>4</comment_count>
      <attachid>536</attachid>
    <who name="Renat Sabitov">r_sabitov</who>
    <bug_when>2004-08-02 15:37:26 +0400</bug_when>
    <thetext>Created attachment 536
Правильный результат</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17645</commentid>
    <comment_count>5</comment_count>
      <attachid>537</attachid>
    <who name="Renat Sabitov">r_sabitov</who>
    <bug_when>2004-08-02 15:37:56 +0400</bug_when>
    <thetext>Created attachment 537
Неправильный результат</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40734</commentid>
    <comment_count>6</comment_count>
    <who name="Michael Shigorin">mike</who>
    <bug_when>2006-09-28 02:34:16 +0400</bug_when>
    <thetext>В качестве частного рещения этой и кучи других проблем с coreutils в UTF8 могу
порекомендовать найти на freshmeat.net &quot;legacy toolchest&quot; и собрать себе в ~/bin
нужное.  У меня есть заготовка для выдранного оттуда tr, но всё полностью
опакетить я совсем морально не готов.

См. тж. баги с &quot;UTF&quot; на coreutils.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>43302</commentid>
    <comment_count>7</comment_count>
    <who name="Michael Shigorin">mike</who>
    <bug_when>2006-12-17 19:18:06 +0300</bug_when>
    <thetext>(In reply to comment #6)
&gt; См. тж. баги с &quot;UTF&quot; на coreutils.
Нет такой (на сегодня), было в рассылках:
http://lists.altlinux.org/pipermail/devel/2006-October/037964.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>43396</commentid>
    <comment_count>8</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2006-12-18 04:03:17 +0300</bug_when>
    <thetext>Собственно говоря, вот весь тест:
echo &apos;Б&apos; |gawk -vIGNORECASE=1 &apos;$1~&quot;б&quot;{print}&apos; |wc -l</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88237</commentid>
    <comment_count>9</comment_count>
    <who name="Slava Semushin">php-coder</who>
    <bug_when>2009-03-29 14:25:39 +0400</bug_when>
    <thetext>(В ответ на комментарий №8)
&gt; Собственно говоря, вот весь тест:
&gt; echo &apos;Б&apos; |gawk -vIGNORECASE=1 &apos;$1~&quot;б&quot;{print}&apos; |wc -l

На 3.1.6 возвращает 0 =&gt; не исправлено.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88527</commentid>
    <comment_count>10</comment_count>
    <who name="Michael Shigorin">mike</who>
    <bug_when>2009-04-01 22:58:44 +0400</bug_when>
    <thetext>(In reply to comment #6)
&gt; В качестве частного рещения этой и кучи других проблем с coreutils в UTF8 могу
&gt; порекомендовать найти на freshmeat.net &quot;legacy toolchest&quot;
Точнее, apt-get install heirloom

(In reply to comment #9)
&gt; &gt; echo &apos;Б&apos; |gawk -vIGNORECASE=1 &apos;$1~&quot;б&quot;{print}&apos; |wc -l
&gt; На 3.1.6 возвращает 0 =&gt; не исправлено.
Н-да, /usr/lib/heirloom/bin/awk обломался.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95646</commentid>
    <comment_count>11</comment_count>
    <who name="Michael Shigorin">mike</who>
    <bug_when>2009-08-04 19:23:49 +0400</bug_when>
    <thetext>Для 3.1.6-alt2 актуально; собрал на скору руку 3.1.7 -- то же.  Ренат, похоже, эту багу придётся излагать апстриму.  Справитесь?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>109693</commentid>
    <comment_count>12</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2010-06-04 03:55:54 +0400</bug_when>
    <thetext>gawk-3.1.8-alt1 -&gt; sisyphus:

* Thu Jun 03 2010 Dmitry V. Levin &lt;ldv@altlinux&gt; 3.1.8-alt1
- Updated to 3.1.8 (closes: #4911, #16359).</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>534</attachid>
            <date>2004-08-02 15:36:25 +0400</date>
            <delta_ts>2004-08-02 15:36:25 +0400</delta_ts>
            <desc>Скрипт GAWK</desc>
            <filename>utf-8-ignorecase.awk</filename>
            <type>text/plain</type>
            <size>42</size>
            <attacher name="Renat Sabitov">r_sabitov</attacher>
            
              <data encoding="base64">e0lHTk9SRUNBU0U9MTtpZiAoJDF+ItC50YbRgyIpIHByaW50ICQxO30K
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>535</attachid>
            <date>2004-08-02 15:36:57 +0400</date>
            <delta_ts>2004-08-02 15:36:57 +0400</delta_ts>
            <desc>Входные данные</desc>
            <filename>utf-8-ignorecase.in</filename>
            <type>text/plain</type>
            <size>41</size>
            <attacher name="Renat Sabitov">r_sabitov</attacher>
            
              <data encoding="base64">0LnRhtGDCtC50YbRg9C60LrQugrQudGG0YMxMjMKMTIzCtCZ0KbQowo=
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>536</attachid>
            <date>2004-08-02 15:37:26 +0400</date>
            <delta_ts>2004-08-02 15:37:26 +0400</delta_ts>
            <desc>Правильный результат</desc>
            <filename>utf-8-ignorecase.out</filename>
            <type>text/plain</type>
            <size>37</size>
            <attacher name="Renat Sabitov">r_sabitov</attacher>
            
              <data encoding="base64">0LnRhtGDCtC50YbRg9C60LrQugrQudGG0YMxMjMK0JnQptCjCg==
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>537</attachid>
            <date>2004-08-02 15:37:56 +0400</date>
            <delta_ts>2004-08-02 15:37:56 +0400</delta_ts>
            <desc>Неправильный результат</desc>
            <filename>utf-8-ignorecase.bad</filename>
            <type>text/plain</type>
            <size>23</size>
            <attacher name="Renat Sabitov">r_sabitov</attacher>
            
              <data encoding="base64">0LnRhtGD0LrQutC6CtC50YbRgzEyMwo=
</data>

          </attachment>
      

    </bug>

</bugzilla>