[cfarm-users] EBCDIC

Bruno Haible bruno at clisp.org
Fri Aug 28 18:58:00 CEST 2026


Peter Gutmann wrote:
> It's been awhile since I've been able to test the EBCDIC handling in my code.

Unless the "IBM i" operating system is among your portability targets, you can
ditch this EBCDIC handling. The reason:
  - Linux/s390x is based on ASCII and UTF-8.
  - While z/OS is based on EBCDIC, the runtime libraries and compiler for
    C and C++ on z/OS present an ASCII-based façade to the programmer.

The best proof that EBCDIC handling is unnecessary in C and C++ is that
GNU gperf generates C/C++ code that assumes ASCII encoding as the execution
character set since 2003, and no one ever has reported a problem with that.

Bruno





More information about the cfarm-users mailing list