This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Apps stop output on some chars

Tags: None
(comma "," separated)
Cheddix
Registered Member
Posts
1
Karma
0

Apps stop output on some chars

Sat Oct 22, 2022 7:50 pm
Hello,
There is a strange behaviour I've recently stumbled upon.
I have a file with the following content:
Code: Select all
 Attributes      Size     Date    Time   Name
----------- ---------  ---------- -----  ----
 -rw-r--r--        10  2022-10-22 17:37  test/НоÐ/extensions/test2/file2
 -rw-r--r--        10  2022-10-22 17:37  test/НоÐ/extensions/test2/file1
 -rw-r--r--         5  2022-10-22 17:37  test/НоÐ/extensions/test/file0
 -rw-r--r--         5  2022-10-22 17:38  test/1/dir/file
 drwxr-xr-x         0  2022-10-22 17:37  test/НоÐ/extensions/test2
 drwxr-xr-x         0  2022-10-22 17:37  test/НоÐ/extensions/test
 drwxr-xr-x         0  2022-10-22 17:37  test/НоÐ/extensions
 drwxr-xr-x         0  2022-10-22 17:38  test/1/dir
 drwxr-xr-x         0  2009-08-05 22:33  test/НоÐ
 drwxr-xr-x         0  2022-10-22 17:38  test/1
 drwxr-xr-x         0  2022-10-22 17:39  test
----------- ---------  ---------- -----  ----
Yes, it has "bad" chars.
However, calling cat on it cause this:
Code: Select all
$ cat test.txt
 Attributes      Size     Date    Time   Name
----------- ---------  ---------- -----  ----
 -rw-r--r--        10  2022-10-22 17:37  test/Ð
$
This was a listing of an archive.
If I call:
Code: Select all
$ rar la test.rar
 Attributes      Size     Date    Time   Name
----------- ---------  ---------- -----  ----
 -rw-r--r--        10  2022-10-22 17:37  test/Ð$
the result is the same. But:
Code: Select all
$ rar la test.rar > test.txt
$
generates pretty well test.txt.

hexdump of the problem line is:
Code: Select all
00000000  20 2d 72 77 2d 72 2d 2d  72 2d 2d 20 20 20 20 20  | -rw-r--r--     |
00000010  20 20 20 31 30 20 20 32  30 32 32 2d 31 30 2d 32  |   10  2022-10-2|
00000020  32 20 31 37 3a 33 37 20  20 74 65 73 74 2f c3 90  |2 17:37  test/..|
00000030  c2 9d c3 90 c2 be c3 90  2f 65 78 74 65 6e 73 69  |......../extensi|
00000040  6f 6e 73 2f 74 65 73 74  32 2f 66 69 6c 65 32 0a  |ons/test2/file2.|
00000050
And apps, that stop outputting, do not die at that moment, they continue to work till their normal finish.
I've tested this on other console emulators, that happens nowhere.


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], kesang, Yahoo [Bot]