Mail Archives: djgpp/1999/01/21/00:31:21
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 -