Hardware code page: Difference between revisions

Content deleted Content added
Removing link(s) to deleted page Code page 860
m Support in operating systems: Improve CONFIG.SYS samples
 
Line 15:
Under [[DOS]] and [[Windows 9x]] this is accomplished by specifying the hardware code page as a parameter (hwcp) to the [[device driver]]s DISPLAY.SYS and PRINTER.SYS in [[CONFIG.SYS]]:
 
: <code> [[DEVICE (CONFIG.SYS directive)|DEVICE]]=…\DISPLAY.SYS CON=(type,hwcp,n|(n,m))</code><ref name="Paul_2001_CPSwitchFD"/><ref name="XyWrite_2009"/><ref name="Caldera_1998_USER-9"/><ref name="Paul_1997_NWDOSTIP"/><ref name="Paul_2001_NWDOSTIP"/><ref name="Caldera_1998_USER-17"/><ref name="Prosise_1990"/>
: <code> DEVICE=…\PRINTER.SYS PRN=(type,hwcp,n)</code><ref name="Paul_2001_CPSwitchFD"/><ref name="Caldera_1998_USER-9"/><ref name="Paul_1997_NWDOSTIP"/><ref name="Paul_2001_NWDOSTIP"/><ref name="Caldera_1998_USER-17"/><ref name="Prosise_1990"/>
 
If multiple hardware code pages are supported in OEM issues, the first hardware code page (hwcp1) in the list specifies the default hardware code page:
 
: <code> DEVICE=…\DISPLAY.SYS CON=(type,(hwcp1,hwcp2,…),n|(n,m))</code><ref name="Paul_2002-12-04"/>
: <code> DEVICE=…\PRINTER.SYS PRN=(type,(hwcp1,hwcp2,…),n)</code><ref name="Paul_2002-12-04"/>
 
If no hardware code page(s) are specified, these drivers default either to a dummy code page number 999<ref name="Paul_2001_CPSwitchFD"/><ref name="Paul_1997_NWDOSTIP"/><ref name="Paul_2001_NWDOSTIP"/> or assume the hardware code page to be equal to the primary code page (the first code page listed in COUNTRY.SYS files for a particular country<ref name="Paul_2001_COUNTRY"/> with the country code either specified in the CONFIG.SYS [[COUNTRY (CONFIG.SYS directive)|COUNTRY]] directive or assumed to be the operating system's internal default, usually 1 (US) in Western issues of DOS).<ref name="Paul_2001_CPSwitchFD"/>