Interface between Wide-based Part and Multibyte-based Subsystems

┌──────────────────────────────────────────────────────────────────────┐
│Basically, wide character based handling is used for an internal      │
│process. When the application communicates with the other systems or  │
│subsystems (e.g. DB2/2, PM, etc.), the communication is based on      │
│multibyte.                                                            │
└──────────────────────────────────────────────────────────────────────┘

Most applications must communicate with the operating system, other subsystems or middle wares to input/output information. Even the famous "hello world!" program uses stdout to output the message.

At present, the interface between an application and these subsystems are byte-based. Thus, the application must convert all outbound wide strings to multibyte strings, and vice versa.

Note: The exception is stream I/O for which the conversion is done within the stream I/O functions implicitly.