This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#11343 - last Arabic character in a line appears as the first for some cases
|
Details- write a word like "مسمار" in a text file, or just use the word as the file name
- the last character "ر" will appear as the first one like this: "رمسما" - this bug appeared only since r26019 - when reverting to r26018 the bug won't show up - for some combination of letters like "دليل" the issue happens for the last 2 characters - for some other words the problem doesn't happen at all - the only common case is that this happens only with last word in a line appearing on the viewport |
This task depends upon
Amr, please confirm that the issue is fixed and we can close this bug
I didn't test the latest build on sansa target yet , but I guess , yes, it shows up on simulator only
according to kugel, the reason might be the use of non-standard library, but I couldn't figure out which one or where in the firmware code
my $LANG variable is "fr_FR.UTF-8" and i'm using ubuntu 10.04
my settings are:
settings / general settings / language = english
settings / general settings / display / default codepage = unicode (and sometimes I switch it to cp1256)
settings / theme settings / font = 16 gnu unifont
$ echo $LANG$
fr_FR.UTF-8
$ export LANG=C
$ ./rockboxui
I didn't modify simulator settings so I'm using the default
how do you test the case with the default simulator settings ?
I have to set font to GNU Unifont to view Arabic filenames,
and to view content of text file containing arabic characters in text viewer, I have to make sure codepage is either unicode or cp1256 depending on the file
$ rm simdisk/.rockbox/config.cfg
$ ./rockboxui
After that I only change font to be GNU Unifont
I've just built the code on an old system running fedora core 9, and it worked great and the problem didn't show up ..
I still cannot understand the reason behind the issue with me on kubuntu, and why after r26019 only .. , Could it be an update to libsdl-dev ?
I thought it's ok on fedora when I tried with the word " مسمار " which appeared well; but when I tried with another case, the word : دليل , the problem showed up again, and it appeared like : ل ليد (i.e. inserting the last character at the beginning of the word) ; while on ubutnu the case was replacing the last two characters not the last one only
i reviewed the joining algorithm implementation for rendering arabic text and nothing has change before or after r26019 !
[fun@kru ~/sim-e/simdisk]% ls
دليل مسمار
[fun@kru ~/sim-e/simdisk]% for i in *;do echo $i | xxd;done
0000000: d8af d984 d98a d984 0a .........
0000000: d985 d8b3 d985 d8a7 d8b1 0a ...........
Can you run the command with xxd to check if character encoding is the same ?
for i in *;do echo $i | xxd ; done
here is the command output, which is the same on both fedora and ubuntu (maybe the difference over yours is the ".txt" at the end of my files)
0000000: d8af d984 d98a d984 2e74 7874 0a .........txt.
0000000: d985 d8b3 d985 d8a7 d8b1 2e74 7874 0a ...........txt.
attached 3 screendumps :
1 - from sansa showing the correct rendering of the 2 file names (which is the same on simulator before r26019 )
2 - from simulator on fedora (one file name is correct and the other is wrong) (the same as your result)
3 - from simulator on ubuntu (both filenames are wrong)