From owner-svn-src-all@FreeBSD.ORG Wed Jun 17 03:15:30 2015 Return-Path: Delivered-To: svn-src-all@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 94538D0F for ; Wed, 17 Jun 2015 03:15:30 +0000 (UTC) (envelope-from mailing-machine@vniz.net) Received: from mail-lb0-f175.google.com (mail-lb0-f175.google.com [209.85.217.175]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 21098EA3 for ; Wed, 17 Jun 2015 03:15:29 +0000 (UTC) (envelope-from mailing-machine@vniz.net) Received: by lbbti3 with SMTP id ti3so22739789lbb.1 for ; Tue, 16 Jun 2015 20:15:28 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-type :content-transfer-encoding; bh=5wkT3ffs7tY+JwGxBq7dx6RmBov4f3BlfiVj00C1A2c=; b=RgYNVtsiZHIqRguJbqAziouArk2Z1jRg65ez8U3Z6E4hfC03XdygRDZ5Kl+6qdTVcE Mql59c4KeAzGE9/xdU7c732FEdFvVfunXZs2ZlkT38I25XR8ksTIY6GFM4I6g4tv3m11 V4pIkqUsk0JIwvzoTiess6iY6VpniZCHzjsjCUvTg7OeGdzDhjk0Iuuu5n55187Bwdjr 9GQ0BqLVpo3WwQIAqNOXzs7AS7TxKXUMknTzrGoFFvH4uj0pF6kvRRuiP6OMHkAt9HSo yDHd/zk0IQAOLFHVJK18M6x3yQfU+6wGLO3hxMdbe5xNFshYhBvnBR161jkvgkrKUfaV Gb6A== X-Gm-Message-State: ALoCoQm+wTwNxTYNbnU3fMKgd0aUH9OSAfKeJ4EsDOfVKcXRE6/xMJqE40QDCqo1kj846XRV0Xla X-Received: by 10.112.142.232 with SMTP id rz8mr5309935lbb.74.1434510928186; Tue, 16 Jun 2015 20:15:28 -0700 (PDT) Received: from [192.168.1.2] ([89.169.173.68]) by mx.google.com with ESMTPSA id rg6sm653944lbb.23.2015.06.16.20.15.27 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 16 Jun 2015 20:15:27 -0700 (PDT) Subject: Re: svn commit: r284489 - head/bin/ls To: Marcel Moolenaar , src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org References: <201506170312.t5H3C9Tm088469@svn.freebsd.org> From: Andrey Chernov Message-ID: <5580E64E.9040601@freebsd.org> Date: Wed, 17 Jun 2015 06:15:26 +0300 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.0.1 MIME-Version: 1.0 In-Reply-To: <201506170312.t5H3C9Tm088469@svn.freebsd.org> Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 7bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Jun 2015 03:15:30 -0000 On 17.06.2015 6:12, Marcel Moolenaar wrote: > Author: marcel > Date: Wed Jun 17 03:12:08 2015 > New Revision: 284489 > URL: https://svnweb.freebsd.org/changeset/base/284489 > > Log: > Unbreak ``env LANG=ru_RU.KOI8-R ls -l''. > Time strings are in the current locale. Thanx, but the same treatment should be for file names too: they are in the current locale. ls -l drops them otherwise. > > Modified: > head/bin/ls/print.c > > Modified: head/bin/ls/print.c > ============================================================================== > --- head/bin/ls/print.c Wed Jun 17 03:11:25 2015 (r284488) > +++ head/bin/ls/print.c Wed Jun 17 03:12:08 2015 (r284489) > @@ -425,7 +425,7 @@ printtime(const char *field, time_t ftim > format = d_first ? "%e %b %Y" : "%b %e %Y"; > strftime(longstring, sizeof(longstring), format, localtime(&ftime)); > > - snprintf(fmt, sizeof(fmt), "{:%s/%%s} ", field); > + snprintf(fmt, sizeof(fmt), "{:%s/%%hs} ", field); > xo_attr("value", "%ld", (long) ftime); > xo_emit(fmt, longstring); > } > -- http://ache.vniz.net/