Opened 16 years ago

Closed 14 years ago

Last modified 14 years ago

#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 diver, 14 years ago

Reproducible with /system/data/Canna/default/default.canna
Still here in hrev35569.

comment:2 by diver, 14 years ago

Version: R1/pre-alpha1R1/Development

comment:3 by jackburton, 14 years ago

Could this have been fixed as well, like #5598 ?

comment:4 by zooey, 14 years ago

Owner: changed from korli to zooey
Status: newin-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 zooey, 14 years ago

Resolution: fixed
Status: in-progressclosed

Should be fixed in hrev38034.

comment:6 by diver, 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 zooey, 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.

Note: See TracTickets for help on using tickets.