Re: [code] Textadept copying bytes causes crash

From: Colin <colin.holzman.att.protonmail.com>
Date: Thu, 13 Sep 2018 18:05:08 +0000

Thanks a lot for that. Copying does indeed work with the that build. I found that I had to comment out line 245 in modules/textadept/editing.lua to allow pasting without getting a conversion error when buffer.encoding is nil. Not sure what other consequences that will have, if any. Thanks again for all your help.

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Monday, September 10, 2018 7:27 PM, Mitchell <m.att.foicica.com> wrote:

> Hi Colin,
>
> On Thu, 6 Sep 2018, Colin wrote:
>
> > It looks like buffer.code_page is 0. I don't see an encoding in the lower right. I set buffer.code_page = 0 in my events.FILE_OPENED handler, but I the issue is still present.
>
> Based on my digging I think that GTK is the culprit (specifically, the old 2.24.10 version bundled with the Windows version of Textadept). In general, GTK likes to convert everything to UTF-8, and it just could not handle some badly encoded chunks of text. The next nightly build of Textadept for Windows will use the latest version of GTK (2.24.32), and in my testing I'm not seeing a crash anymore.
>
> Cheers,
> Mitchell
>
> -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> You are subscribed to code.att.foicica.com.
> To change subscription settings, send an e-mail to code+help.att.foicica.com.
> To unsubscribe, send an e-mail to code+unsubscribe.att.foicica.com.

-- 
You are subscribed to code.att.foicica.com.
To change subscription settings, send an e-mail to code+help.att.foicica.com.
To unsubscribe, send an e-mail to code+unsubscribe.att.foicica.com.
Received on Thu 13 Sep 2018 - 14:05:08 EDT

This archive was generated by hypermail 2.2.0 : Fri 14 Sep 2018 - 06:54:27 EDT