libtool-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: EBCDIC whitespace


From: jean-frederic clere
Subject: Re: EBCDIC whitespace
Date: Mon, 29 Jul 2002 18:17:36 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0) Gecko/20020529

Hi Howard,

I have already sent a patch for EBCDIC support to libtool (in April 2002).
It will be in the next libtool release.

Could you check if it works on your machine? (See http://subversions.gnu.org/cgi-bin/cvsweb/libtool/ltmain.in.diff?r1=1.292&r2=1.293&f=h).

Cheers

Jean-frederic

Howard Chu wrote:
The SP2NL and NL2SP translations don't work for EBCDIC without tweaks:

--- ltmain.sh   11 Feb 2002 05:45:59 -0000      1.17
+++ ltmain.sh   26 Jul 2002 22:56:33 -0000      1.18
@@ -74,8 +74,17 @@
 # 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.

  -- Howard Chu
  Chief Architect, Symas Corp.       Director, Highland Sun
  http://www.symas.com               http://highlandsun.com/hyc
Symas: Premier OpenSource Development and Support

_______________________________________________
Libtool-patches mailing list
address@hidden
http://mail.gnu.org/mailman/listinfo/libtool-patches








reply via email to

[Prev in Thread] Current Thread [Next in Thread]