Code page conversion when the shell and MVS™ have different locales

A code page for a specific character set determines the graphic character produced for each hexadecimal encoding. The code page used is determined by the programs and national languages being used.

If the shell is using a locale generated with code pages IBM-1047, IBM-1027, or IBM-939, an application programmer needs to be concerned about variant characters in the POSIX portable character set whose encoding may vary from other EBCDIC code pages:
  • Right brace (})
  • Left brace ({)
  • Backslash (\)
  • Right bracket (])
  • Left bracket ([)
  • Circumflex (^)
  • Tilde (~)
  • Exclamation point (!)
  • Number sign (#)
  • Vertical bar (|)
  • Dollar sign ($)
  • Commercial at-sign (@)
  • Accent grave (`)
For example, the encodings for the brackets do not match on code pages IBM-037 and IBM-1047:
  • Left bracket: [
  • Right bracket: ]