Subject: bug#25495: closed (Re: bug#25495: WTF? Chmod (and presumably other coreutils) corrupt their own error messages with "smart" quotes...)

From: [email-masked] (GNU bug Tracking System)
Date: Sat, 21 Jan 2017 00:03:02 +0000

Your bug report

#25495: WTF? Chmod (and presumably other coreutils) corrupt their own error messages with "smart" quotes...

which was filed against the coreutils package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
25495: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=25495
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#25495: WTF? Chmod (and presumably other coreutils) corrupt their own error messages with "smart" quotes...
From: Paul Eggert <[email-masked]>
To: Alain Knaff <[email-masked]>, Eric Blake <[email-masked]>, [email-masked]
Date: Fri, 20 Jan 2017 16:01:57 -0800
List-Id: <debbugs-submit.debbugs.gnu.org>

Alain Knaff wrote:
> $ LC_ALL=C.UTF-8 chmod 0 ffff
> chmod: cannot access ‘ffff’: No such file or directory

It looks like you're using an old version of coreutils. The current version 
outputs ASCII apostrophes there. This was a change committed on 2015-11-04 and 
released in coreutils 8.25; it makes it easier to cut and paste file names from 
diagnostics into shells.

Since the reported behavior is already fixed I'm taking the liberty of closing 
the bug report.

Subject: WTF? Chmod (and presumably other coreutils) corrupt their own error messages with "smart" quotes...
From: Alain Knaff <[email-masked]>
To: [email-masked]
Date: Fri, 20 Jan 2017 22:44:17 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

Hi,

Recently, while browsing error mails of some cron jobs, I noticed that
chmod puts "smart" quotes into its error messages.

IMHO, such gimmicks should have no place in core utilities.

At least this behavior should be optional via configuration or
environment setting (preferably off by default).

The faulty code lives in lib/quotearg.c in function gettext_quote

Even defining a custom locale that just maps quotes to themselves
doesn't work, because this function specifically tests for that case
(translation same as msgid), and then "manually" garbles the quotes.

Who came up with this? :-)

Thanks for fixing this,

Alain