Re: [code] [textadept] Segmentation fault with Python module

From: Robert <rob.g.att.web.de>
Date: Wed, 30 Jan 2013 22:47:54 +0100

On Wed, Jan 30, 2013 at 3:57 AM, Mitchell <m.att.foicica.com> wrote:
> Robert,
>
>
> On Sun, 27 Jan 2013, Robert wrote:
>
>> Hi,
>>
>> using the Python module I get a segmentation fault when trying to save
>> a file with an incorrect encoding declaration:
>>
>> # coding=utf8t
>>
>> Directly on the command line I get an error message:
>>
>> robert$ python -m py_compile test.py
>> SyntaxError: ('unknown encoding: utf8t', ('test.py', 0, 0, None))
>>
>> Observed this on both Linux an OS X, on the latter I get
>> Segmentation fault: 11
>> when Textadept is launched directly from the command line.
>
>
> This is fixed in the python module's hg.

Thanks for the fix, I had assumed the crash had revealed some deeper issue.
In any case, wouldn't it be better to to turn the line number into '1' if the
py_compile call returns '0'? That way, the error message would get displayed.

Robert

-- 
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 Wed 30 Jan 2013 - 16:47:54 EST

This archive was generated by hypermail 2.2.0 : Thu 31 Jan 2013 - 06:37:25 EST