1. DOS LFN support (was: Paste feature in Euphoria Editor)

Robert Craig wrote:

> Carl White writes:
>> Potential new users should know that it's not a
>> happy editor under NT-based
>> operating systems [NT, 2000, XP].
>>
>> The two main things that don't work are
>> transferring the Windows Clipboard
>> and Long Filename support.
>
> In my local copy of ex.exe, DOS long filename support
> has been extended to include XP and 2000.
> It will be in the next release.

Very nice!
In the next release, will there also be DOS long filename support under
Win 95/98/ME for current_dir(), chdir(), and *full* LFN support for dir()
and open()?

Hm.. Rob, did you already mention, when the next release will be
available? blink))

Together with J.Brown, I began to work at a cross-platform library for
directory and file operations some time ago. Unfortunately, it doesn't
make much progress at the moment, because I have little time, but it
shouldn't be too much work to extract the functions related to long
filenames, and rearrange them somewhat.

So Carl, until the next Eu release, if you have need for it (or anyone
else), I can make a small library containing the following functions
(tested on Win 98/1st ed. and Win 2000):

------------------------------------------------------------------------
  i = dos_lfn_supported()

      Returns TRUE, if the current platform() is DOS32, and long
      filenames are supported, otherwise FALSE.
------------------------------------------------------------------------
  s = dos_short_name(name)

      If dos_lfn_supported() is TRUE, this function returns the short
      (8.3) name of a file or directory.
      If dos_lfn_supported() is FALSE or an error occurs, the given name
      is returned.
------------------------------------------------------------------------
  s = dos_long_name(name)

      If dos_lfn_supported() is TRUE, this function returns the long
      name of a file or directory.
      If dos_lfn_supported() is FALSE or an error occurs, the given name
      is returned.
------------------------------------------------------------------------
  i = open(filename, mode)

      Euphoria's built-in open() function redefined, so that ex.exe can
      handle files with long names e.g. on Win 2000 (and also can create
      new files with long names on Win 9x).
------------------------------------------------------------------------
  x = dir(name)

      Euphoria's dir() function rewritten, so that ex.exe can handle
      files with long names e.g. on Win 2000 (and also returns long
      filenames on Win 9x).
------------------------------------------------------------------------
  s = current_dir()

      Euphoria's current_dir() function rewritten, so that ex.exe returns
      a long directory name e.g. on Win 2000 and Win 9x.
------------------------------------------------------------------------
  i = chdir(newdir)

      Euphoria's chdir() function rewritten, so that 'newdir' can be
      a long directory name with ex.exe e.g. on Win 2000 and Win 9x.
------------------------------------------------------------------------

Regards,
   Juergen

new topic     » topic index » view message » categorize

2. Re: DOS LFN support (was: Paste feature in Euphoria Editor)

Juergen Luethje writes:
> In the next release, will there also be DOS 
> long filename support under Win 95/98/ME for 
> current_dir(), chdir(), and *full* LFN support for dir() and open()?

All I've done is extend the current support for 
DOS long filenames to XP and 2000.

> Hm.. Rob, did you already mention, 
> when the next release will be available? blink))

No, I haven't mentioned it.
I expect to have a 2.4 alpha-test release within 2 months.

> Together with J.Brown, I began to work at a cross-platform library for
> directory and file operations some time ago. Unfortunately, it doesn't
> make much progress at the moment, because I have little time, but it
> shouldn't be too much work to extract the functions related to long
> filenames, and rearrange them somewhat.

If you can create a .e file with full support for long filenames,
and if people can confirm that it works with all flavors of DOS,
I can move the code into the interpreter. 

I believe (but haven't fully tested) that the ex.exe interpreter or 
translator using DJGPP already has full support for DOS LFN. 
It's the Watcom versions that are lacking in a couple of areas.

Regards,
   Rob Craig
   Rapid Deployment Software
   http://www.RapidEuphoria.com

new topic     » goto parent     » topic index » view message » categorize

3. Re: DOS LFN support (was: Paste feature in Euphoria Editor)

On  0, Robert Craig <rds at RapidEuphoria.com> wrote:
> Juergen Luethje writes:
> > Hm.. Rob, did you already mention, 
> > when the next release will be available? blink))
> 
> No, I haven't mentioned it.
> I expect to have a 2.4 alpha-test release within 2 months.
> 

I can't wait to try it out.

> > Together with J.Brown, I began to work at a cross-platform library for
> > directory and file operations some time ago. Unfortunately, it doesn't
> > make much progress at the moment, because I have little time, but it
> > shouldn't be too much work to extract the functions related to long
> > filenames, and rearrange them somewhat.

Uhh ... didnt dos.e already do this? In fact, Juergen, didnt you get most
of
the dos code FROM dos.e? Not to say that our lib isn't useful (personally
I
think it should be part of the standard includes, but then again thats
just my
opinion) but that wouldnt it be easier to get dos.e from the archives
than to
extract the DOS-only code from file2.e? (I wouldn't know, I've mostly
done
the Unix-only part of the programming on it.)

About file2.e: I'm working on some more Linux improvements, I'll give
Juergen
a copy in a few days perhaps.

> Regards,
>    Rob Craig
>    Rapid Deployment Software
>    http://www.RapidEuphoria.com
> 

UNRELATED:
Here is 2 Euphoria versions I'd like to see:
Ecu built with cygwin for windows, and Exw built with Winelib for Linux.
I doubt Rob will have enough time to do this, but if somone else did, it
would
be extremely useful for comparing MS-Windows to POSFIX platforms.

jbrown


--

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu