delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/01/21/00:31:21

Date: Thu, 21 Jan 1999 07:26:57 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Holger Wahlen <H DOT Wahlen AT fz-juelich DOT de>
cc: djgpp AT delorie DOT com
Subject: Re: Determine/switch code page?
In-Reply-To: <Pine.GSO.3.95.990120164219.4092A-100000@hlrz18>
Message-ID: <Pine.SUN.3.91.990121072312.1859F-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com

On Wed, 20 Jan 1999, Holger Wahlen wrote:

> Is it possible to determine DOS's current code page or to switch to
> another one from within a DJGPP program? 

Yes and no.

There's a DOS function (Interrupt 21h/AX=6601h) that returns the current 
codepage number.  But you cannot change the codepage without editing 
CONFIG.SYS/AUTOEXEC.BAT and rebooting.

Also, note that on systems which don't install the codepage explicitly 
from CONFIG.SYS, DOS reports the default 437 codepage, although the truth 
is that the codepage burnt into the video BIOS is used.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019