Re: Build glitch: gnome-print-0.19 fails to build on Solaris 2.8



On Tue, May 16, 2000 at 04:50:08PM -0400, Zach Frey <zfrey@bright.net> wrote:
> The problem is that gnome-config is broken when using Solaris'
> /usr/bin/tr, and fails to properly pull out values from xmlConf.sh.
> So, there's apparantly some difference between Solaris tr and
> GNU tr.
> 
> -               up_name=`echo $1 | tr "[:lower:]" "[:upper:]"`
> +               up_name=`echo $1 | tr a-z A-Z`

    The two version you describe are equivalent when using normal
English language, and both may be fine in this cases.  The first
example uses POSIX behavior for language independence.  Here's a bit
of the Tru64 man page for tr:

   2.  In the POSIX locale, to translate lowercase ASCII characters to upper-
       case, you can enter:
            tr 'a-z' 'A-Z' <textfile >newfile

       This command assumes that English letters are collated in English
       alphabetical order, which may not be true for locales other than the
       POSIX locale. The following command is recommended for case conversion
       for all locales:
            tr '[:lower:]' '[:upper:]' <textfile >newfile


    You may want to bug Sun to update their tr.  FWIW, Tru64 also supplies
an older 'trbsd'.

-- 
Bob Bell		Compaq Computer Corporation
Software Engineer	110 Spit Brook Rd - ZKO3-3U/14
TruCluster Group	Nashua, NH 03062-2698
bobbell@zk3.dec.com	603-884-0595




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