Re: [AD] Hashes bite back

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


On January 1, 2004 12:50 pm, Grzegorz Adam Hankiewicz wrote:
> On 2004-01-01, Elias Pschernig <elias@xxxxxxxxxx> wrote:
> > The problem is - filenames in linux can contain any character
>
> Not really, path separators, possibly \0 depending on implementation,
> maybe something else...

just escape the special char, and you can use it. :) Otherwise, even non ascii 
works... Though with my current settings, it shows up as ascii ;) 
(garbage...)

> On 2004-01-01, Robert Jr Ohannessian <rohannessian@xxxxxxxxxx> wrote:
> > Could we use path separators as an alternative character to hashes?
>
> Not sure about that, Linux might accept both, thought I'm to lazy to try.
> Eric, how about adding such a text to the end of pack_fopen:
>
>    "Since Allegro defines the hash `#' as a character with special
>    meaning, for the sake of portability you are disallowed to load
>    files with this character in their name, which should be pretty
>    rare anyway."
>
> Hmm... and how about deprecating the hash in favor of some
> invalid/obscure/unused utf8 code which could be inserted in filenames
> with some ALLEGRO_MAGIC_SEPARATOR sprintf? That could be portable.
>

sounds like work :o personally, I'd have a vfs setup and use a /. 

> -------------------------------------------------------
> This SF.net email is sponsored by: IBM Linux Tutorials.
> Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
> Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
> Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click

-- 
Thomas Fjellstrom
tfjellstrom@xxxxxxxxxx
http://strangesoft.net





Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/