delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/05/02/12:33:13

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.3 required=5.0 tests=AWL,BAYES_00
X-Spam-Check-By: sourceware.org
Date: Mon, 2 May 2011 18:32:36 +0200
From: Jens Schweikhardt <schweikh AT schweikhardt DOT net>
To: cygwin AT cygwin DOT com
Subject: locale(1) not POSIX compliant (easy to fix, patch almost included)
Message-ID: <20110502163236.GA3664@schweikhardt.net>
MIME-Version: 1.0
User-Agent: Mutt/1.5.21 (2010-09-15)
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

hello, world\n

"locale -a" prints its output space padded, while POSIX specifies

<quote src="http://pubs.opengroup.org/onlinepubs/009695399/utilities/locale.html">

If any arguments are specified:

    If the -a option is specified, the names of all the public locales
    shall be written, each in the following format:

    "%s\n", <locale name>

</quote>

There's a "%-15s" somewhere where a "%s" should be, it seems.

Regards,

	Jens
-- 
Jens Schweikhardt http://www.schweikhardt.net/
SIGSIG -- signature too long (core dumped)

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019