Date: Thu, 21 Jan 1999 07:26:57 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: Holger Wahlen cc: djgpp AT delorie DOT com Subject: Re: Determine/switch code page? In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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.