[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Ebcdic rule
From: |
Paul Eggert |
Subject: |
Re: Ebcdic rule |
Date: |
Tue, 2 Oct 2001 10:40:44 -0700 (PDT) |
> From: Pfeiffer Daniel <address@hidden>
> Date: Tue, 2 Oct 2001 18:49:50 +0200
>
> ever since everybody's shouting "We're open!", mainframes have learned a few
> Unix manners, which is a good thing. Alas, while being quite close to
> Posix, they'll use Ebcdic rather than Ascii, which causes no end of
> headaches.
Wow. Are you actually using such mainframes to run GNU applications?
I thought that, these days, most of those people were running in ASCII
(or Latin-1 or UTF-8) mode, even on mainframes.
> [ "`echo A`" = "`echo '\0301'`" ]
Why do you need an Autoconf test for this? Can't you put
something like the following into your C code?
#if 'A' == '\301'
printf ("Looks like we're using EBCDIC.");
#endif
Also, some 'echo' implementations don't treat backslash specially,
so your shell script looks fishy.
In my experience, the main problem with porting to EBCDIC is not
detecting whether the host uses EBCDIC; it's all the existing code
that assumes ASCII without thinking. E.g., 'a' <=x && x <= 'z'
succeeds for some bytes that are not lower-case letters in EBCDIC.
(And don't get me started about east-Asian EBCDIC extensions like
EBCDIK. :-)
- Ebcdic rule, Pfeiffer Daniel, 2001/10/02
- Re: Ebcdic rule,
Paul Eggert <=
- Re: Ebcdic rule, Russ Allbery, 2001/10/02
- Re: Ebcdic rule, Paul Eggert, 2001/10/02
- Re: Ebcdic rule, Eric Siegerman, 2001/10/03
- Re: Ebcdic rule, Harlan Stenn, 2001/10/03
- Re: Ebcdic rule, Paul Eggert, 2001/10/04
- Re: Ebcdic rule, Mike Castle, 2001/10/04
- Re: Autoconf, DOS and NT (was Ebcdic rule), Paul Eggert, 2001/10/04
- Re: Autoconf, DOS and NT (was Ebcdic rule), Mike Castle, 2001/10/04
- Re: Autoconf, DOS and NT (was Ebcdic rule), Paul Eggert, 2001/10/04
- Re: Autoconf, DOS and NT (was Ebcdic rule), Earnie Boyd, 2001/10/04