Menu

#120 Edit does not support long filenames

freedos12
open
5
2022-06-26
2014-05-13
Stuart Axon
No

I tested Edit 0.9b in dosemu, tried to create a file "C:\long file test.txt" it seems a file "long fil.txt" was created instead.

Note - is it worth checking the status of LFNs in all the external programs ?

Related

Bugs: #120

Discussion

  • Anthony Williams

    LFNs are a Win95 addition, not originally available in pure DOS mode. So older compilers don't support it transparently. Some compilers (e.g. DJGPP) support LFNs out of the box, but EDIT is not compiled with that. IIRC, EDIT used TurboC or TC++ or similar.

    If you don't want to use a different text editor, you can code a simple workaround:

    E.BAT

    @echo off
    REM get L.EXE from DOSLFN
    REM http://www.ibiblio.org/pub/micro/pc-stuff/freedos/files/...
    REM .../util/system/doslfn/0.41/
    if "%1"=="" goto end
    if not exist %1 goto end
    set /e EDITFILE=l.exe shortname %1
    edit.exe %EDITFILE%
    :end
    set EDITFILE=
    ===================================

     
    • Stuart Axon

      Stuart Axon - 2014-05-13

      Is it possible to compile it with watcom and get the support, or is it
      DFLAT that would need this ?

      On 13 May 2014 21:38, Anthony Williams rugxulo@users.sf.net wrote:

      LFNs are a Win95 addition, not originally available in pure DOS mode. So
      older compilers don't support it transparently. Some compilers (e.g. DJGPP)
      support LFNs out of the box, but EDIT is not compiled with that. IIRC, EDIT
      used TurboC or TC++ or similar.

      If you don't want to use a different text editor, you can code a simple
      workaround:
      E.BAT

      @echo off
      REM get L.EXE from DOSLFN
      REM http://www.ibiblio.org/pub/micro/pc-stuff/freedos/files/...
      REM .../util/system/doslfn/0.41/
      if "%1"=="" goto end
      if not exist %1 goto end
      set /e EDITFILE=l.exe shortname %1
      edit.exe %EDITFILE%
      :end
      set EDITFILE=
      ===================================


      Status: open
      Group:
      Created: Tue May 13, 2014 02:00 PM UTC by Stuart Axon
      Last Updated: Tue May 13, 2014 02:00 PM UTC
      Owner: nobody

      I tested Edit 0.9b in dosemu, tried to create a file "C:\long file
      test.txt" it seems a file "long fil.txt" was created instead.

      Note - is it worth checking the status of LFNs in all the external
      programs ?


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/freedos/bugs/120/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

       

      Related

      Bugs: #120

      • Stuart Axon

        Stuart Axon - 2014-05-13

        The context is - I'm having a look at the long filename support of some
        programs in freedos under dosemu - if I get time I'll try and get
        openwatcom installed and have a poke at some things.

        On 13 May 2014 21:59, Stu stu.axon@gmail.com wrote:

        Is it possible to compile it with watcom and get the support, or is it
        DFLAT that would need this ?

        On 13 May 2014 21:38, Anthony Williams rugxulo@users.sf.net wrote:

        LFNs are a Win95 addition, not originally available in pure DOS mode. So
        older compilers don't support it transparently. Some compilers (e.g. DJGPP)
        support LFNs out of the box, but EDIT is not compiled with that. IIRC, EDIT
        used TurboC or TC++ or similar.

        If you don't want to use a different text editor, you can code a simple
        workaround:
        E.BAT

        @echo off
        REM get L.EXE from DOSLFN
        REM http://www.ibiblio.org/pub/micro/pc-stuff/freedos/files/...
        REM .../util/system/doslfn/0.41/
        if "%1"=="" goto end
        if not exist %1 goto end
        set /e EDITFILE=l.exe shortname %1
        edit.exe %EDITFILE%
        :end
        set EDITFILE=
        ===================================


        Status: open
        Group:
        Created: Tue May 13, 2014 02:00 PM UTC by Stuart Axon
        Last Updated: Tue May 13, 2014 02:00 PM UTC
        Owner: nobody

        I tested Edit 0.9b in dosemu, tried to create a file "C:\long file
        test.txt" it seems a file "long fil.txt" was created instead.

        Note - is it worth checking the status of LFNs in all the external
        programs ?


        Sent from sourceforge.net because you indicated interest in
        https://sourceforge.net/p/freedos/bugs/120/

        To unsubscribe from further messages, please visit
        https://sourceforge.net/auth/subscriptions/

         

        Related

        Bugs: #120

        • Stuart Axon

          Stuart Axon - 2014-05-13

          Interestingly there is a GPL wrapper to provide LFN support to turboc
          programmes
          http://www2.inf.fh-rhein-sieg.de/~skaise2a/ska/sources.html#io95

          On 13 May 2014 22:06, Stu stu.axon@gmail.com wrote:

          The context is - I'm having a look at the long filename support of some
          programs in freedos under dosemu - if I get time I'll try and get
          openwatcom installed and have a poke at some things.

          On 13 May 2014 21:59, Stu stu.axon@gmail.com wrote:

          Is it possible to compile it with watcom and get the support, or is it
          DFLAT that would need this ?

          On 13 May 2014 21:38, Anthony Williams rugxulo@users.sf.net wrote:

          LFNs are a Win95 addition, not originally available in pure DOS mode. So
          older compilers don't support it transparently. Some compilers (e.g. DJGPP)
          support LFNs out of the box, but EDIT is not compiled with that. IIRC, EDIT
          used TurboC or TC++ or similar.

          If you don't want to use a different text editor, you can code a simple
          workaround:
          E.BAT

          @echo off
          REM get L.EXE from DOSLFN
          REM http://www.ibiblio.org/pub/micro/pc-stuff/freedos/files/...
          REM .../util/system/doslfn/0.41/
          if "%1"=="" goto end
          if not exist %1 goto end
          set /e EDITFILE=l.exe shortname %1
          edit.exe %EDITFILE%
          :end
          set EDITFILE=
          ===================================


          Status: open
          Group:
          Created: Tue May 13, 2014 02:00 PM UTC by Stuart Axon
          Last Updated: Tue May 13, 2014 02:00 PM UTC
          Owner: nobody

          I tested Edit 0.9b in dosemu, tried to create a file "C:\long file
          test.txt" it seems a file "long fil.txt" was created instead.

          Note - is it worth checking the status of LFNs in all the external
          programs ?


          Sent from sourceforge.net because you indicated interest in
          https://sourceforge.net/p/freedos/bugs/120/

          To unsubscribe from further messages, please visit
          https://sourceforge.net/auth/subscriptions/

           

          Related

          Bugs: #120

  • Anthony Williams

    There are some FD programs using the IO95 shim, but I don't know how reliable it is. Also, OpenWatcom, currently stable at 1.9, only halfway has LFN support, and I only locally got it working in one 16-bit program (with -DWATCOM_LFN or whatever). Even the 32-bit compiler binaries themselves don't support it. Though OW 2.0-pre claims to be improved in that area, but I haven't bothered testing the unofficial DOS snapshot.

    As for FD EDIT, sure it's technically possible that someone can patch it to compile with OW, but by default I don't know how easy that is. The maintainer is Aitor, but he doesn't have much time to work on such things these days. I wouldn't pin too much hope on that unless you want to do it entirely yourself.

    Unfortunately, most FD software is not able to be compiled with dozens of compilers, usually it's quite specific. The easiest choice is to just use a different text editor, e.g. something compiled by DJGPP, if LFN support is that crucial. FD EDIT wasn't meant to be the end-all text editor, just a suitable 8086-ish replacement with similar UI.

     
  • dos386

    dos386 - 2014-07-09

    is it worth checking the status of LFNs in all the external programs ?

    I consider "LFNs" as a flaw, not a feature.

    BUG #2 : https://sourceforge.net/p/freedos/bugs/2/
    BUG #112 : https://sourceforge.net/p/freedos/bugs/112/

     

    Last edit: dos386 2014-07-09
  • Aitor Santamaría Merino

    This is a feature request.
    As a DOS tool, EDIT was never supposed to be LFN-aware, although it would be a nice thing to have.
    It's not just a question of porting IO95 to OWC/DFlat/DFlat+, but also there are some dialogs that may be impacted too.

     
  • Aitor Santamaría Merino

    • assigned_to: Aitor Santamaría Merino
    • Group: --> freedos12
     
  • Aitor Santamaría Merino

    • labels: --> FEATURE-REQUEST
     

Log in to post a comment.