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

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

    <bug>
          <bug_id>9994</bug_id>
          
          <creation_ts>2006-09-13 01:17:50 +0400</creation_ts>
          <short_desc>Искажение полей при экспорте контакта в ldif</short_desc>
          <delta_ts>2007-08-01 00:55:50 +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>gnokii</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>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael A. Kangin">mak</reporter>
          <assigned_to name="Anton Farygin">rider</assigned_to>
          <cc>rider</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>40235</commentid>
    <comment_count>0</comment_count>
    <who name="Michael A. Kangin">mak</who>
    <bug_when>2006-09-13 01:17:51 +0400</bug_when>
    <thetext>gnokii 0.6.14

Нашёл контакт, фамилия которого искажается при записи в ldif:
--------------
gnokii --getphonebook ME 57 -l
.....
Message received: 0x03 / 0x00aa
01 57 00 08 00 01 01 00 00 10 00 05 00 39 00 00 |  W           9
00 5e 00 00 00 06 1e 00 00 08 02 01 00 00 0b 00 |  ^
00 24 03 03 00 00 00 1a 00 xx 00 xx 00 xx 00 xx |  $       + x x x
00 xx 00 xx 00 xx 00 xx 00 xx 00 xx 00 xx 00 xx |  x x x x x x x x
00 00 07 00 00 2c 3f 26 04 10 04 3b 04 35 04 3a |      ,?&amp;   ; 5 :
04 41 04 30 04 3d 04 34 04 40 00 20 04 12 00 2e |  A 0 = 4 @     .
00 20 04 22 04 38 04 42 04 3e 04 32 00 00 2f 00 |    &quot; 8 B &gt; 2  /
00 08 00 3f 80 39 46 00 00 20 01 1a 04 10 04 3b |    ?─9F        ;
04 35 04 3a 04 41 04 30 04 3d 04 34 04 40 00 20 |  5 : A 0 = 4 @
04 12 00 2e 00 00 47 00 00 14 04 0c 04 22 04 38 |    .  G      &quot; 8
04 42 04 3e 04 32 00 00 00 00                   |  B &gt; 2
Received message type 03
Received phonebook info
Blockstart: 0x1e
   Group: 0
Blockstart: 0x0b
   Type: 3 (03)
   Number: +xxxxxxxxxxx
Blockstart: 0x07
   Name: Александр В. Титов
Blockstart: 0x2f
Unknown phonebook block 2f
Blockstart: 0x46
   Firstname: Александр В.
Blockstart: 0x47
   Lastname: Титов
dn: cn=Александр В. Титов
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
objectclass: mozillaAbPersonObsolete
givenName:: 0JDQu9C10LrRgdCw0L3QtNGAINCSLg==
sn:: 0KLQuNGC0L7Q
cn:: 0JDQu9C10LrRgdCw0L3QtNGAINCSLiDQotC40YLQvtCy
mobile: +xxxxxxxxxxx

Serial device: closing device
-----------------

Поле sn искажено:
$ echo 0KLQuNGC0L7Q | base64 -d |iconv -f utf8 -t koi8-r
Титоiconv: incomplete character or shift sequence at end of buffer

Правильное значение: 
$ echo Титов |iconv -f koi8-r -t utf8 |base64 -e
0KLQuNGC0L7Qsgo=


на других контактах вроде не заметил, но на этом воспроизводится устойчиво.
показан вывод от пропатченной gnokii (#9993), но поведение оригинальной версии
точно такое же.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41480</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Shigorin">mike</who>
    <bug_when>2006-10-18 11:24:17 +0400</bug_when>
    <thetext>Может, заберёте пакет у raorn@ на обмахивание вени^Wнапильником?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>53342</commentid>
    <comment_count>2</comment_count>
    <who name="Sir Raorn">raorn</who>
    <bug_when>2007-07-31 22:39:00 +0400</bug_when>
    <thetext>Пихоже, его переклинивает на пятибуквенных восьмибитных именах.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>53347</commentid>
    <comment_count>3</comment_count>
    <who name="Sir Raorn">raorn</who>
    <bug_when>2007-08-01 00:55:49 +0400</bug_when>
    <thetext>Проблема в base64_encode().

&lt;pkot&gt; I would need to rewrite it a bit to undestand fully

сказал разработчик.  Немного захачил в 0.6.18-alt1.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>