kehpager V1.23 - Charset aware pager for VTxxx terminals This patch updates kehpager from version 1.22 to version 1.23. Look file patch3.COPYRIGHT to see your rights. Kehpager is a pager that displays the contents of a text file on the terminal, one screenful at a time. It converts file's charset (character set) into the terminal's charsets. The lines that are too long are wrapped in between words. Kehpager can also interpret text/enriched and text/richtext -formatted text files. Text/enriched and text/richtext have MIME's content-types. Applying patch: !!!!! NOTICE THIS !!!!! Execute patch3.sh in kehpager's source directory Changes in this patch: * RFC 1700 lists many ISO 646 national charsets as MIME-charset. These are (at least most of them) now accepted by kehpager. -> Added IANA registry charsets: ISO Swedish (ISO646-SE, ISO646-FI), ISO Swedish 2 (ISO646-SE2), ISO Norwegian (ISO646-NO), ISO Norwegian 2 (ISO646-NO2), ISO Chinise (ISO646-CN), ISO Japanese (ISO646-JP), ISO Portuguese (ISO646-PT), ISO Portuguese 2 (ISO646-PT2), ISO Spanish (ISO646-ES), ISO Spanish 2 (ISO646-ES2), ISO Hungarian (ISO646-HU), ISO Yugoslavian (ISO646-YU), ISO Cuban (ISO646-CU), ISO Korean (South) (ISO646-KR), ISO Canadian 2 (ISO646-CA2), ISO French (ISO646-FR) -> New names for terminal's charsets: DEC Finnish (X-ISO646-FI), DEC Norwegian (X-ISO646-NO), ISO Danish (X-ISO646-DK, ISO646-DK), ISO Canadian (X-ISO646-CA, ISO646-CA), ISO French 1 (X-ISO646-FR, ISO646-FR1), ISO German (X-ISO646-DE, ISO646-DE), ISO Italian (X-ISO646-ITA, ISO646-IT) * New terminal's local charset: DEC Swiss (keyboard languages 10 (Swiss French) and 11 (Swiss German), option -CH) * Bug fixes: Fixed initialization error of charset tables -- now kehpager doesn't waste a huge amount of memory and time in startup * "Initializing terminal..." text is now printed with a well defined charset (ASCII) * Added simple support for the use of non DEC charsets in terminal: - option: -Ncs - init file field: force.terminal_charset * Now terminal is initialized in redraw - Options: -CH, -T4, -T5, -T6, -Ncs, -Ncs+ Installation SunOS 4: Set correct value for use.keyboard.language -field in kehpager.init (you can also comment it out if your terminals is inteelligent enough). You probably also want add use.vt100.national_available: Enabled to kehpager.init (this was default prior version 1.06). Copy kehpager.init to library direction Edit Makefile and put defination of GLOBAL_INIT_FILE point correct location of kehpager.init Also select correct compiler (gcc, or SUN's acc) to Makefile.'s define. Compile it with make sunos4 Copy kehpager and kehpager.1 to correct directories SunOS 5: Set correct value for use.keyboard.language -field in kehpager.init (you can also comment it out if your terminals is intelligent enough). You probably also want add use.vt100.national_available: Enabled to kehpager.init (this was default prior version 1.06). Copy kehpager.init to library direction Edit Makefile and put defination of GLOBAL_INIT_FILE point correct location of kehpager.init Also select correct compiler (gcc, or SUN's acc) to Makefile.'s define. Compile it with make sunos5 Copy kehpager and kehpager.1 to correct directories HP-UX: Set correct value for use.keyboard.language -field in kehpager.int (you can also comment it out if your terminals is intelligent enough). You probably also want add use.vt100.national_available: Enabled to kehpager.init.hpux (this was default prior version 1.06). Copy kehpager.init.hpux to library direction Edit Makefile.hpux and put defination of GLOBAL_INIT_FILE point correct location of kehpager.init.hpux Also select correct compiler (gcc, or HP's cc (ANSI C version)) to Makefile.hpux's define. Compile it with make -f Makefile.hpux Copy kehpager and kehpager.1 to correct directories 386BSD, FreeBSD, NetBSD: (I haven't tested this!) Set correct value for use.keyboard.language -field in kehpager.init (you can also comment it out if your terminals is intelligent enough). You probably also want add use.vt100.national_available: Enabled to kehpager.init (this was default prior version 1.06). Copy kehpager.init to library direction Edit Makefile and put defination of GLOBAL_INIT_FILE point correct location of kehpager.init Compile it with make -f Makefile.bsd Copy kehpager and kehpager.1 to correct directories IRIX 4.0.5: (I get ENOTDEV error when closing terminal, so there is still some problems... To ignore that error, put -DCLOSEBUG to CFLAGS in Makefile.irix. I haven't compiled that version of kehpager in Irix 4.0.5) Set correct value for use.keyboard.language -field in kehpager.init (you can also comment it out if your terminals is intelligent enough). You probably also want add use.vt100.national_available: Enabled to kehpager.init (this was default prior version 1.06). Copy kehpager.init to library direction Edit Makefile.irix and put defination of GLOBAL_INIT_FILE point correct location of kehpager.init Compile it with make -f Makefile.irix Copy kehpager and kehpager.1 to correct directories. If you don't have troff or groff, ask someone to compile kehpager.1 IRIX 5.2: Set correct value for use.keyboard.language -field in kehpager.init (you can also comment it out if your terminals is intelligent enough). You probably also want add use.vt100.national_available: Enabled to kehpager.init (this was default prior version 1.06). Copy kehpager.init to library direction Edit Makefile.irix and put defination of GLOBAL_INIT_FILE point correct location of kehpager.init Compile it with make -f Makefile.irix Copy kehpager and kehpager.1 to correct directories. If you don't have troff or groff, ask someone to compile kehpager.1 Tested platforms: Kehpager works on SunOS 4.1.2 (OS/MP 4.1B), 5.2, HP-UX A.09.01, IRIX 5.2 (at least some way). Compiler: Kehpager is compiled with gcc in SunOS 4.1.2, 5.2. In HP-UX it is compiled with cc (ANSI C version). (notice that ANSI C version of cc isn't bundled with HP-UX) In IRIX 5.2 it is compiled with cc (in -xansi mode). Kehpager compiles without error or warning messages (with gcc's -Wall in SunOs 5.2. Also HP's cc don't give any warnigs even that it is more strict than gcc). Thanks to: Markus Kuhn Tim Lasko David E A Wilson Joerg Wunsch Vera Izrailit Jyrki Havia Risto Kankkunen Luke Brennan Laura Kataja