Ticket #425 (assigned defect)

Opened 5 months ago

Last modified 3 weeks ago

HexEdit fails to change edited values

Reported by: rob Owned by: https://me.yahoo.com/postrockrob#52e3a
Priority: major Milestone: 0.7.6
Component: application Keywords:
Cc:

Description

A consequence of using the STC as a backend store: when editing in the middle of a unicode string, updates will fail because SetSelection? fails when the start or end point breaks a unicode string.

Attachments

Change History

Changed 4 months ago by rob

(In [1260]) Refs #425: attemped to find start and end of multi-byte sequence before replacing the value. Still doesn't work for all cases

Changed 2 months ago by rob

  • milestone changed from 0.7.4 to 0.7.5

Changed 3 weeks ago by https://me.yahoo.com/postrockrob#52e3a

  • owner changed from rob to https://me.yahoo.com/postrockrob#52e3a
  • status changed from new to assigned

Maybe it could work if, upon entering HexEdit? mode, the code page for the reference STC is changed so that it isn't unicode.

Changed 3 weeks ago by https://me.yahoo.com/postrockrob#52e3a

Well, when I do this:

self.buffer.stc.SetCodePage(0)

I get this error, so maybe it's not possible to change the code page?

  File "/usr/lib64/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/stc.py", line 1730, in SetCodePage
    return _stc.StyledTextCtrl_SetCodePage(*args, **kwargs)
wx._core.PyAssertionError: C++ assertion "codePage == wxSTC_CP_UTF8" failed at
../../../../contrib/src/stc/stc.cpp(455) in SetCodePage():
Only wxSTC_CP_UTF8 may be used when wxUSE_UNICODE is on.

Add/Change #425 (HexEdit fails to change edited values)

Author



Action
as assigned
 
Note: See TracTickets for help on using tickets.