Mail Archives: djgpp-announce/2018/03/04/12:18:16
This is a port of GNU less 530 to MSDOS/DJGPP.
DJGPP specific changes.
=======================
This port no longer uses the supplied DOS/DJGPP specific files defines.ds and
Mekefile.dsg. To configure this package the stock configure script is used.
All the required support files are stored in the /djgpp directory. You can
configure the sources by starting config.bat and passing the required options.
This port also offers perl-regexp (pcre) support so if you want to compile
the sources with this feature you will have to install the pcre library
first. This is available as:
ftp://ftp.delorie.com/pub/djgpp/current/v2tk/pcre841b.zip
If you want this feature you will have to reconfigure and recompile the
port passing the "pcre" command line option to config.bat. By default
this feature will be disabled and the stock posix regex support will be
compiled in. The binary package contains both programs, the one without
pcre support is called "less" and the one with pcre support is called
"lesspcre". Keep the one you prefer and delete the other one.
This port has been configured and compiled to use the MS-DOS "edit" as the
default editor. Which editor shall be used at runtime can always be specified
by the VISUAL and EDITOR environment variables. At runtime, less will detect
which editor shall be started and adjust the command line options passed to
the editor accordingly. This means that edit will get only the file name but
all other editors get all default options or those options specified by the
LESSEDIT environment variable.
Less will search for all configuration and history files at the standard posix
places and with the standard posix names before searching at the standard dos
places with the standard dos names.
Less will look for the system wide configuration files as:
/dev/env/DJDIR/bin/.sysless (deprecated; with LFN support)
/dev/env/DJDIR/bin/_sysless (deprecated; without LFN support)
/dev/env/DJDIR/etc/sysless
c:\_sysless
Less will always give the posix versions precedence over the dos versions of
the files. This means that it will try to load /dev/env/DJDIR/etc/sysless
and if this fails it tries to load c:\_sysless. The other twos are deprecated
but still supported. Here again /dev/env/DJDIR/bin/.sysless will be tried
first and if it fails because it does not exists or because no LFS support is
available then /dev/env/DJDIR/bin/_sysless will be tried.
The same applies to the user configuration files and history files. The user
configuration file will be searched as $HOME/.less and if this fails the dos
version $HOME/_less will be tried. If this fails too then the file _less
will be searched along the dos path as it used to be.
The port has been configured and compiled on WinXP SP3. There is no guarantee
that this may be possible with any other DOS-like OS. Due to the massive use
of long file names it will not be possible to configure and compile without
LFN support. The port has been compiled using gcc346 and bnu230b.
As usual, all djgpp specific files (diffs, README files, etc.) are stored in
the /djgpp directory. The sources have been configured to be build in the
/_build directory. If for some reason it does not work for you, delete it
contents and configure from scratch again.
For further information about GNU less please read the info docs and NEWS file.
This is a verbatim extract of the NEWS file:
-------------------------------------------------------------------------------
Major changes between "less" versions 487 and 530
* Don't output terminal init sequence if using -F and file fits on one screen.
* When using -S, mark truncated lines with a special character.
The character can be changed or disabled via the new --rscroll option.
* New command M marks the last line displayed on the screen.
* New command ESC-m removes a line mark.
* Status column (enabled via -J) now shows mark letters.
* Status column shows search matches even if highlighting is disabled via -G.
* A second ESC-u command will clear search match markers in the status column.
* Do same ANSI escape code filtering for tag matching that we do for
searching, to help when viewing syntax-highlighted code.
* Catch SIGTERM and clean up before exiting.
* Fix bug initializing default charset on Windows.
* Handle keypad ENTER key correctly if it sends something other than newline.
* Fix buffering bug when using stdin with a LESSOPEN pipe.
* On Windows, allow 'u' in -D option to enable underlining.
* On Windows, use underline in sgr mode.
* On Windows, convert UTF-8 to multibyte if console is not UTF-8.
* Update Unicode tables to 2017-03-08.
* Pass-thru Unicode formating chars (Cf type) instead of treating them
as binary chars. But treat them as binary if -U is set.
* Fix erroneous binary file warning when UTF-8 file contains ANSI SGR sequences.
* Fix bugs when using LESSOPEN and switching between stdin and other files.
* Fix some bugs handling filenames containing shell metacharacters.
* Fix some memory leaks.
* Allow some debugging environment variables to be set in lesskey file.
* Code improvements:
. Use ANSI prototypes in funcs.h declarations.
. Fix some const mismatches.
. Remove archaic "register" in variable declarations.
======================================================================
Major changes between "less" versions 481 and 487
* New commands ESC-{ and ESC-} to shift to start/end of displayed lines.
* Make search highlights work correctly when changing caselessness with -i.
* New option -Da in Windows version to enable SGR mode.
* Fix "nothing to search" error when top or bottom line on screen is empty.
* Fix bug when terminal has no "cm" termcap entry.
* Fix incorrect display when entering double-width chars in search string.
* Fix bug in Unicode handling that missed some double width characters.
* Update Unicode database to 9.0.0.
-------------------------------------------------------------------------------
The port consists of the usual two packages that have been produced
using djdev205 and can be downloaded from ftp.delorie.com and mirrors
as (time stamp 2018-02-24):
less 530 binaries, info and man format documentation:
ftp://ftp.delorie.com/pub/djgpp/current/v2gnu/lss530b.zip
less 530 source:
ftp://ftp.delorie.com/pub/djgpp/current/v2gnu/lss530s.zip
Send less specific bug reports to <bug-less AT gnu DOT org>.
Send suggestions and bug reports concerning the DJGPP port to
comp.os.msdos.djgpp or <djgpp AT delorie DOT com>.
Enjoy.
Guerrero, Juan Manuel <juan DOT guerrero AT gmx DOT de>
- Raw text -