[Geany-devel] Crash when pasting a Zero-width space

Harold Aling geany at xxxxx
Tue Jun 26 10:09:35 UTC 2012


On Tue, Jun 26, 2012 at 12:05 PM, Lex Trotman <elextr at gmail.com> wrote:
> On 26 June 2012 20:01, Thomas Martitz
> <thomas.martitz at student.htw-berlin.de> wrote:
>> Am 26.06.2012 11:53, schrieb Harold Aling:
>>
>>> Updated to Geany 1.23 (git >= 40da14b)
>>>
>>> 1. Create a new document (ctrl-n)
>>> 2. Copy/paste "mA" (already has a zero-width space in the middle)
>>> 3. Press 'home'
>>> 4. Press 'delete'
>>> 5. Crash -> 100% CPU
>>
>>
>> Works for me. No crash and no 100% CPU usage.
>>
>>
>>> Geany also counts that character as 3 positions instead of 1.
>>
>>
>> Depending on your POV, this is the correct behavior (the pos field actually
>> shows the byte offset since the start of the file, hence it's 0-based also).
>
> Yes, the column count only counts it as one though pos counts as 3.
> Pos is bytes, thats a scintilla definition.
>
> I would guess its something about the Ubuntu specials, just for comparison
>
> 08:47:15: Geany INFO            : Geany 1.23 (git >= 8187268), en_AU.UTF-8
> 08:47:15: Geany INFO            : GTK 2.24.10, GLib 2.30.2
>
>  (From the help->debug messages GUI :)
>
> Whats yours say?

11:59:08: Geany INFO		: Geany 1.23 (git >= 40da14b), en_US.UTF-8
11:59:08: Geany INFO		: GTK 2.24.10, GLib 2.32.3

-H-



More information about the Devel mailing list