From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII X-Google-Thread: 103376,3accd44abeec75ee X-Google-Attributes: gid103376,public From: fluffy_pop@dsuper.net Subject: Re: DOS/Win95 file names Date: 1999/06/11 Message-ID: <3762f569.682876310@news.dsuper.net>#1/1 X-Deja-AN: 488390851 Content-Transfer-Encoding: 8bit References: <375fd4b4.608956077@news.dsuper.net> <3760B4CC.6E84F2F6@Maths.UniNe.CH> X-Original-NNTP-Posting-Host: asc9-addr-127.dsuper.net Content-Type: text/plain; charset=ISO-8859-1 X-Trace: 11 Jun 1999 08:26:39 -0400, delphi.dsuper.net Organization: via Internet Direct MIME-Version: 1.0 Newsgroups: comp.lang.ada Date: 1999-06-11T00:00:00+00:00 List-Id: 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.