Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Debian dpkg (http://www.linux-archive.org/debian-dpkg/)
-   -   Why `%s'? (http://www.linux-archive.org/debian-dpkg/393750-why-s.html)

Jonathan Nieder 07-01-2010 05:21 PM

Why `%s'?
 
Hi Daniel,

Daniel Bock wrote:

> Why there's `%s' instead of '%s' in dpkg's messages?

It’s a historical thing[1]. On old terminals, the former looks
like ‘%s’ and the latter like ’%s’. dpkg is slowly moving away
from that[2]. doc/coding-style.txt explains:

On strings in code use simple or double quotes «'» «""». Not the unpaired
ones «`'». Strings marked for translation should only be fixed if there's
other changes to be done on them; otherwise we get unneeded fuzzies.

<http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html>

[1] Still encouraged by
http://www.gnu.org/prep/standards/html_node/Quote-Characters.html#Quote-Characters
but that is probably for historical reasons, too.

[2] e.g., see http://lists.debian.org/debian-dpkg/2009/09/msg00067.html


--
To UNSUBSCRIBE, email to debian-dpkg-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20100701172104.GA1873@burratino">http://lists.debian.org/20100701172104.GA1873@burratino


All times are GMT. The time now is 01:35 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.