Re: [code] [Textadept] Issue with ~ in filenames

From: Mitchell <m.att.foicica.com>
Date: Fri, 18 May 2012 07:17:51 -0400 (EDT)

Hi,

On Wed, 16 May 2012, Rena wrote:

> With Textadept 5.3 on Lubuntu 12.04 AMD64, I can't save any file with
> a ~ in its name. E.g. trying to save a file:
> /home/rena/dev/lua/gbemu/~cpu-tests.txt:
> fails:
> Error: ...v/pc/src/textadept/textadept_5.3.x86_64/core/file_io.lua:227:
> /home/~cpu-tests.txt: Permission denied
> seems like TA is incorrectly treating the ~ character as an alias for
> the home directory.

I don't have a testing machine present right now, so first try commenting
out the ":iconv(" part of line 225 and see if you get the same result. If
you do, since ta just uses Lua's io.open, perhaps it's worth inquiring on
the Lua mailing list if it interprets '~' specially?

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.
Received on Fri 18 May 2012 - 07:17:51 EDT

This archive was generated by hypermail 2.2.0 : Sat 19 May 2012 - 06:29:14 EDT