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

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

    <bug>
          <bug_id>16302</bug_id>
          
          <creation_ts>2008-07-08 00:31:52 +0400</creation_ts>
          <short_desc>Кракозябры на терминале в локали UTF-8</short_desc>
          <delta_ts>2008-09-10 21:39:43 +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>aspell</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>patch</keywords>
          <priority>P2</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="kirill">kirill</reporter>
          <assigned_to name="Alexei Takaseev">taf</assigned_to>
          <cc>lav</cc>
    
    <cc>php-coder</cc>
    
    <cc>taf</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>73776</commentid>
    <comment_count>0</comment_count>
    <who name="kirill">kirill</who>
    <bug_when>2008-07-08 00:31:52 +0400</bug_when>
    <thetext>$ echo $LANG
ru_RU.UTF-8
$ file q
q: UTF-8 Unicode text
$ aspell -c q
&lt;крокозяблы на экране&gt;

в восьмибитной локали (koi8-r) всё нормально</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>73887</commentid>
    <comment_count>1</comment_count>
    <who name="Slava Semushin">php-coder</who>
    <bug_when>2008-07-10 13:39:04 +0400</bug_when>
    <thetext>Обычные ошибки выводятся в консоль нормально, потому что gettext() используется. А проблема с кракозябрами из-за использования ncurses, который, как известно, не поддерживает юникод.

Об этом даже написано в README:

A.3.1 Unicode Support
---------------------

In order for Aspell to correctly spell check UTF-8 documents in full
screen mode the &quot;wide&quot; version of the curses library must be installed.
This is different from the normal version of curses library, and is
normally named `libcursesw&apos; (with a `w&apos; at the end) or `libncursesw&apos;.
UTF-8 documents will not display correctly without the right curses
version installed.


Так что исправляется это очень просто:
- Вместо libncurses-devel прописать libncursesw-devel в BuildRequires
- добавить опцию --enable-wide-curses в вызов %configure

После этого у меня всё заработало нормально (в однобитной локали, правда, не проверял).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>73902</commentid>
    <comment_count>2</comment_count>
    <who name="Slava Semushin">php-coder</who>
    <bug_when>2008-07-11 06:52:12 +0400</bug_when>
    <thetext>Исправление доступно в моём git repo.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>74020</commentid>
    <comment_count>3</comment_count>
    <who name="Slava Semushin">php-coder</who>
    <bug_when>2008-07-14 21:33:35 +0400</bug_when>
    <thetext>Исправлено в 0.60.5-alt3</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>