[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: GNUlib unicode encoding causes smart quotes to be displayed in progr
Re: GNUlib unicode encoding causes smart quotes to be displayed in program's output
Sat, 07 Dec 2019 05:10:26 +0100
KMail/5.1.3 (Linux/4.4.0-166-generic; KDE/5.18.0; x86_64; ; )
Wes Hurd wrote:
> What I meant about smart quotes being dangerous was, if copying the output
> text that contains smart quotes to use somewhere else (especially in code),
> the smart quotes have to be manually replaced which is tedious for the user
It's quite the opposite: The smart quote characters are safer because they
don't interfere with the quoting of a shell or programming language. For
example, in my music directory, I have a directory T’pau.
$ ls T’pau
China in your hand.wav
If the directory was named T'pau and I were to write the command
$ ls T'pau
it would hang. And
$ ls 'T'pau'
would hang as well. *This* is dangerous.
> The user may not even see that smart quotes are being used unless there is
> a breaking error.
But the smart quotes look different than an apostrophe! No confusion is
Your argument was correct 40 years ago, when
1. the shape of the apostrophe was given by US-ASCII and was not vertical ,
2. a character cell had so few pixels in height and width that smart quotes
and apostrophes could not be rendered differently.
The reason why quotearg.c uses smart quotes is explained in .
Re: GNUlib unicode encoding causes smart quotes to be displayed in program's output, Paul Eggert, 2019/12/05