X-Recipient: archive-cygwin@delorie.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@schweikhardt.net>
To: cygwin@cygwin.com
Subject: locale(1) not POSIX compliant (easy to fix, patch almost included)
Message-ID: <20110502163236.GA3664@schweikhardt.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.5.21 (2010-09-15)
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.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

