From: fluffy_pop@dsuper.net
Subject: Re: DOS/Win95 file names
Date: 1999/06/11
Date: 1999-06-11T00:00:00+00:00 [thread overview]
Message-ID: <3762f569.682876310@news.dsuper.net> (raw)
In-Reply-To: 3760B4CC.6E84F2F6@Maths.UniNe.CH
On Fri, 11 Jun 1999 09:03:41 +0200, in comp.lang.ada you wrote:
>...
>Windows... A possibility is to have an explicit
>translation table;
I guess this is what you mean:
DOS Windows
-------------- ---------------
Alt+130 => '�' Alt+0130 => '�'
Alt+233 => '_' Alt+0233 => '�'
FUNCTION ISO ( p_car : character ) RETURN character IS
WITH Ada.Characters.Latin_1; USE Ada.Characters.Latin_1;
ISO_Char : character;
BEGIN
CASE character'pos(p_car) IS
...
WHEN 129 => ISO_Char := lc_u_diaeresis;
WHEN 130 => ISO_Char := lc_e_acute;
WHEN 131 => ISO_Char := lc_a_circumflex;
...
END CASE;
RETURN ISO_Char;
END;
> the best one is to forbid
>accents in filenames: you could add to your exception
>handling such a warning.
I don't want to forbid accents in filenames. Why should I ?
Windows (in all it's glory) accepts accents in filenames, so
why not take advantage of it with my program ? If I'm a user
of the program and I arleady have input filenames that have
accented characters on my HD I don't want to have to change
my files' names before using the program.
If the user is using my program in a DOS window, what he/she
enters (each character) will be the code from the Windows
code page, and if it's in DOS MODE (reboot) it will be from
the DOS 850 code page, right ?
If the above is true, then the function ISO will only have
an effect if the user is in DOS MODE, right ?
So if the two statements above are true, then how come
I have a problem (explained in my first post), since I've
been working in a DOS window all along when playing the
user part and when coding ?
For 0-127 (Ascii) the code is the same:
Alt+63 (DOS) => '?' and Alt+063 (Windows) => '?'.
Is there a chance that something related to this topic
is causing the problem when there's a '?' in the filename ?
Of course it could be my code that is faulty, but I doubt
it since the other validations, in the same procedure,
are working fine (see my first post).
Thanks
Marc
--
What I really am is "fluffy", no "_dong",
no "_puff", no "_woo", no nothing, just plain fluffy.
next prev parent reply other threads:[~1999-06-11 0:00 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-06-10 0:00 DOS/Win95 file names fluffy_pop
1999-06-11 0:00 ` Gautier
1999-06-11 0:00 ` Pascal Obry
1999-06-11 0:00 ` fluffy_pop [this message]
1999-06-11 0:00 ` dennison
1999-06-11 0:00 ` Robert Dewar
1999-06-11 0:00 ` fluffy_pop
1999-06-12 0:00 ` Robert Dewar
1999-06-12 0:00 ` jerry
1999-06-12 0:00 ` Mario Klebsch
1999-06-12 0:00 ` fluffy_pop
1999-06-12 0:00 ` fluffy_pop
1999-06-13 0:00 ` jerry
1999-06-13 0:00 ` fluffy_puff
1999-06-13 0:00 ` Matthew Heaney
1999-06-14 0:00 ` fluffy_puff
1999-06-14 0:00 ` fluffy_puff
1999-06-13 0:00 ` fluffy_puff
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox