Command: nlsfunc

  NLSFUNC adds NLS (National Language Support) swapping functionality.
  This is so because the kernel already has this NLS functionality
  (since it can parse COUNTRY=....). DISPLAY and NLSFUNC are used
  to be able to swap the system codepage via CHCP.

Syntax:

  NLSFUNC [/Y|/?] [drive][path]filename
    drive                   The drive letter, e.g. C:
    path                    The directory, e.g. \example\
    filename                The file containing the NLS
                            information

Options:

  /Y                        Loads the optional YES/NO table.
  /?                        Shows the help.
  [drive][path] filename    Drive and path to a valid
                            COUNTRY.SYS file, which contains
                            the NLS information.

Comments:

  This implementation of NLSFUNC is FreeDOS specific.
  It won't work with MS-DOS or any other DOS variant.
  Sorry, there is less information available about NLSFUNC, see:
    https://gitlab.com/FreeDOS/base/nlsfunc

Examples:

  This is an example for POLAND (pl). First of all goto COUNTRY
  or COUNTRY.SYS to find the country number (48) and the codepages
  that are available in this case (852, 850, 858). Then check
  KPDOS to find out in which EGA package these languages are.
  In this case the codepages 852, 850 and 858 are in EGA.CPX.

  CONFIG.SYS / FDCONFIG.SYS:
    ! COUNTRY=048,852,C:\FREEDOS\BIN\country.sys
    !LASTDRIVE=Z
    !BUFFERS=20
    !FILES=40
    DOS=HIGH
    DOS=UMB
    DOSDATA=UMB
    DEVICE=C:\FREEDOS\BIN\himemx.exe
    DEVICEHIGH=C:\FREEDOS\BIN\jemm386.exe
    SHELLHIGH=C:\FREEDOS\BIN\command.com C:\FREEDOS\BIN /E:1024
              /P=C:\fdauto.bat

  AUTOEXEC.BAT / FDAUTO.BAT:
    path C:;C:\FREEDOS\,C:\FREEDOS\BIN
    keyb pl
    ctmouse
    LH DISPLAY CON=(EGA,437,3)
    MODE CON CP PREP=((850,852,858) C:\FREEDOS\CPI\EGA.CPX)

      REM OR INSTEAD OF THE LINE ABOVE (works slower, only
      REM for demonstration purposes:
      REM MODE CON CP PREP=((850) C:\FREEDOS\CPI\EGA.CPX)
      REM MODE CON CP PREP=((,852) C:\FREEDOS\CPI\EGA.CPX)
      REM MODE CON CP PREP=((,,858) C:\FREEDOS\CPI\EGA.CPX)
      REM Without commas the previous CP would be overwritten!

    MODE CON CP SELECT=852 (should also work without this command)
    LH NLSFUNC /Y C:\FREEDOS\BIN\country.sys

  IN COMMAND LINE:
    CHCP      (Shows actual codepage, 852 in this example because
               of setting in CONFIG.SYS)
    CHCP 850  (changes to CP 850)
    CHCP 858  (changes to CP 858)
    CHCP 857  gives an error message (CP is not prepared!)

  For an alternative example see CHCP.

See also:

  autoexec.bat/fdauto.bat
  chcp
  config.sys/fdconfig.sys
  country
  country.sys
  display.sys
  keyb
  mode

  Copyright © 2004 Eduardo Casino, updated 2023 by W. Spiegl.

  This file is derived from the FreeDOS Spec Command HOWTO.
  See the file H2Cpying for copying conditions.