groff
[Top][All Lists]
Advanced

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

Re: stumped on a simple autoconf/m4/sh problem


From: Paul Eggert
Subject: Re: stumped on a simple autoconf/m4/sh problem
Date: Mon, 2 Dec 2024 12:55:02 -0800
User-agent: Mozilla Thunderbird

On 2024-12-02 12:26, G. Branden Robinson wrote:
Why shouldn't the test succeed? Solaris 10 /usr/bin/tr supports
character classes like [:cntrl:].
It doesn't for me in the instance at gcc210.fsffrance.org.

It works for me there:

  $ uname -a
SunOS gcc-solaris10 5.10 Generic_Virtual sun4u sparc SUNW,SPARC-Enterprise
  $ printf 'a\003b\n' | /usr/bin/tr '[:cntrl:]' '[ *]'
  a b $

Solaris 10 /usr/bin/tr has trouble in multibyte locales. Perhaps that's your problem? 'configure' should set LC_ALL=C early on, though, so if this is your problem it suggests that part of your script is messing with the locale, when it shouldn't be.

I installed the attached doc patch into Autoconf master to document more of the tr issues.

Attachment: 0001-doc-mention-tr-issues-in-multi-byte-locales.patch
Description: Text Data


reply via email to

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