#2334 closed bug (fixed)
[StyledEdit] problems editing special chars
Reported by: | diver | Owned by: | zooey |
---|---|---|---|
Priority: | normal | Milestone: | R1 |
Component: | Applications/StyledEdit | Version: | R1/Development |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Platform: | All |
Description
There are problems editing special chars in StyledEdit. open /boot/beos/etc/KanBe/default open some files which contains special chars and try to insert some char before it. You should see that it (special chars) will disappear in this case. There could be more effects.
Change History (7)
comment:1 by , 15 years ago
comment:2 by , 15 years ago
Version: | R1/pre-alpha1 → R1/Development |
---|
comment:4 by , 14 years ago
Owner: | changed from | to
---|---|
Status: | new → in-progress |
Unfortunately, the original bugreport doesn't mention *how* the file was opened with StyledEdit. As it does not contain utf-8 characters, StyledEdit will display garbage. Editing near the garbage characters will indeed confuse BTextView (at least I now know how to reproduce the bug).
If you convert the file from its original EUC-JP encoding to utf-8 (e.g. in Pe) and then copy & paste the contents into StyledEdit, things will be better, but there are still caret positioning problems.
Trying to figure this one out ...
comment:5 by , 14 years ago
Resolution: | → fixed |
---|---|
Status: | in-progress → closed |
Should be fixed in hrev38034.
comment:6 by , 14 years ago
There are still some weirdness with default.canna and .canna. Select line with EUC-JP character and press End key. Caret should move to the end of that line, but it somewhere in-between instead. Also I've got 2 app_server crashes while playing with those files, not sure if it related, though.
comment:7 by , 14 years ago
Yep, when you open the file as utf-8 (i.e. withouth converting it from EUC-JP), StyledEdit/BTextView will get confused. But that's not really a surprise, as StyledEdit is basically passing bogus UTF-8 text into BTextView.
That's still a problem of course, but a different one - see #6447.
Reproducible with /system/data/Canna/default/default.canna
Still here in hrev35569.