Waldek Hebisch wrote:
Frank Heckenbach wrote:
Mirsad Todorovac wrote:
I saw EBCDIC and I was frightened.
I don't know how many routines would have to be rewritten in String and String2 units to fit in ... So, if it's not a scrict requirement, or if it doesn't become one day, I don't know if it is worthwhile ...
Did anybody run GNU Pascal on EBCDIC platform yet?
GCC only supports ASCII platforms, and it's quite unlikely this will ever change. (After all, EBCDIC is still proprietary and secret outside of IBM, AFAIK, so it might not even be possible to support it.)
GCC supports EBCDIC (grep in gcc/ for EBCDIC),
Oh yes (I only looked in doc/, silly me ...). Apparently it supports one EBCDIC variant, but only for lexing etc. The runtime support is probably left to the system library (as usual in C), while `char' just gives an integer type that can hold some values that may be interpreted as chars.
In Pascal, we'd have to do much more. As Mirsad pointed out, there are a lot of functions that would need adaptation. I don't really suppose this will happen too soon ... ;-)
Unicode is more likely to case problem then EBCDIC -- simple test if something is a digit gets quite hairy.
I'm not familiar with all the details of Unicode, but which other representations are there for (Arabic) digits?
Frank