라벨이 code page인 게시물 표시

OS/2 codes: How to execute a child process in a specific code page

A code page is legacy and is being replaced with a unicode system. Unfortunately, however, OS/2 still use a code page. In addition, it supports maximum 2 code pages only at a time. They are called as primary code page and secondary code page, respectively. Of course, PM programs can more free from a code page, but they are also affected by a code page, so called process code page. In this ariticle, we will find how to control those code pages, especially for child process. OS/2 provides several APIs for a code page. Out of them, our concern is DosSetProcessCp() . Its systanx is #define INCL_DOSNLS #include <os2.h> ULONG cp ; /* A code page identifier. */ APIRET ulrc ; /* Return Code. */ ulrc = DosSetProcessCp(cp); Reference: http://cyberkinetica.homeunix.net/os2tk45/cp1/1726_L2H_DosSetProcessCpSynta.html DosSetProcessCp() changes the current process code page. And the important thing is the changed code page is inherited by a child process. However, th...