Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
openldap
OpenLDAP
Commits
5ed1677d
Commit
5ed1677d
authored
Jul 27, 2002
by
Howard Chu
Browse files
Detect EBCDIC for SP2NL/NL2SP translation
parent
5a5f9219
Changes
1
Hide whitespace changes
Inline
Side-by-side
build/ltmain.sh
View file @
5ed1677d
...
...
@@ -74,8 +74,17 @@ rm="rm -f"
# metacharacters that are still active within double-quoted strings.
Xsed
=
'sed -e 1s/^X//'
sed_quote_subst
=
's/\([\\`\\"$\\\\]\)/\\\1/g'
SP2NL
=
'tr \040 \012'
NL2SP
=
'tr \015\012 \040\040'
# test EBCDIC or ASCII
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.
# Only set LANG and LC_ALL to C if already set.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment