#36 max line

closed
None
5
2013-06-28
2008-02-21
r corak
No

32000 today just isn't a reasonable max.

Today I needed to browse a file that contains somewhere a line longer than 32000. THE refused.

The file is about 1.5M with some 26K lines. Doubling the size descriptor from 2 bytes to 4 bytes doesn't seem too onerous to me. All fit well in the Windows 2G address space.

Discussion

  • Mark Hessling

    Mark Hessling - 2008-02-21

    Logged In: YES
    user_id=86185
    Originator: NO

    This has been addressed in THE 3.3. The 3.3beta1 available for download enables line lengths of 2000000000 characters.

     
  • Mark Hessling

    Mark Hessling - 2008-02-21
    • status: open --> pending
     
  • Mark Hessling

    Mark Hessling - 2008-02-21

    Logged In: YES
    user_id=86185
    Originator: NO

    Correction to last post, this was implemented in THE 3.2.

     
  • Mark Hessling

    Mark Hessling - 2008-02-21
    • status: pending --> closed
     
  • r corak

    r corak - 2008-02-21

    Logged In: YES
    user_id=1587066
    Originator: YES

    And that's a good thing, except it doesn't work.
    If in profile.the I have "set width 2000000000", I can't do even a DIR command.
    Error 0030: Memory shortage
    Error 0006: blah blah blah
    So, I need to determine the longest line in the file, adjust profile.the, and proceed? Seems user unfriendly.

     
  • Mark Hessling

    Mark Hessling - 2008-02-21

    Logged In: YES
    user_id=86185
    Originator: NO

    If your machine had 2gb memory free then setting a width of 2,000,000,000 would work. The error message is correct, there is a memory shortage on your machine.

    If you know your lines are about 26k in length, then I'd start THE with:
    the -w40000 my_wide_file

    If I was already running THE and tried to edit my_wide_file it will give a warning message stating the width of the line it can't edit, and I'd:
    set width xxxxxx (where xxxxxx is longer than the width displayed in the warning message).

    The larger the line width, the slower THE can be using some commands, so it is advantageous to only specify a width that is wide enough for the files you are editing.

     
  • Mark Hessling

    Mark Hessling - 2013-06-21
    • labels: Interface Improvements (example) -->
    • Group: Next Release --> None
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks