mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-21 15:19:34 -05:00
Detect EBCDIC for SP2NL/NL2SP translation
This commit is contained in:
parent
5a5f9219bf
commit
5ed1677d13
1 changed files with 11 additions and 2 deletions
|
|
@ -74,8 +74,17 @@ rm="rm -f"
|
||||||
# metacharacters that are still active within double-quoted strings.
|
# metacharacters that are still active within double-quoted strings.
|
||||||
Xsed='sed -e 1s/^X//'
|
Xsed='sed -e 1s/^X//'
|
||||||
sed_quote_subst='s/\([\\`\\"$\\\\]\)/\\\1/g'
|
sed_quote_subst='s/\([\\`\\"$\\\\]\)/\\\1/g'
|
||||||
SP2NL='tr \040 \012'
|
# test EBCDIC or ASCII
|
||||||
NL2SP='tr \015\012 \040\040'
|
case `echo '' | od -x` in
|
||||||
|
*15*) # EBCDIC based system
|
||||||
|
SP2NL='tr \100 \025'
|
||||||
|
NL2SP='tr \025 \100'
|
||||||
|
;;
|
||||||
|
*) # Assume ASCII based system
|
||||||
|
SP2NL='tr \040 \012'
|
||||||
|
NL2SP='tr \015\012 \040\040'
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
# NLS nuisances.
|
# NLS nuisances.
|
||||||
# Only set LANG and LC_ALL to C if already set.
|
# Only set LANG and LC_ALL to C if already set.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue