[Konsole-devel] [Bug 83278] New: If I cut -b1 arabic_file in konsole, the output displayed in screen is not correct

Muunzir Taha munzirtaha at newhorizons.com.sa
Sat Jun 12 19:42:56 UTC 2004


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
      
http://bugs.kde.org/show_bug.cgi?id=83278      
           Summary: If I cut -b1 arabic_file in konsole, the output
                    displayed in screen is not correct
           Product: konsole
           Version: unspecified
          Platform: Unlisted Binaries
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
        AssignedTo: konsole-devel kde org
        ReportedBy: munzirtaha newhorizons com sa


Version:            (using KDE KDE 3.2.2)
Installed from:    Unspecified Linux
OS:                Linux

[mimo localhost mimo]$ cat arabic_file
ع
ر
ب
ي
١
٢
٣
٤

[mimo localhost mimo]$ cut -b1 arabic_file
�
 �
  �
   �
    �
     �
      �
       �
        [mimo localhost mimo]$

The problem is in the leading spaces. I can understand that the squares mean non-valid bytes but I can't understand why there are leading spaces!!

This may also proves useful:
[mimo localhost mimo]$ hexdump arabic_file
0000000 b9d8 d80a 0ab1 a8d8 d90a 0a8a a1d9 d90a
0000010 0aa2 a3d9 d90a 0aa4
0000018

[mimo localhost mimo]$ cut -b1 arabic_file |hexdump
0000000 0ad8 0ad8 0ad8 0ad9 0ad9 0ad9 0ad9 0ad9
0000010



More information about the konsole-devel mailing list