Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Jun 2015 04:26:49 +0000 (UTC)
From:      Alexander Kabaev <kan@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r284494 - head/bin/ls
Message-ID:  <201506170426.t5H4QngV023706@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kan
Date: Wed Jun 17 04:26:48 2015
New Revision: 284494
URL: https://svnweb.freebsd.org/changeset/base/284494

Log:
  Continue ubreaking ``env LANG=ru_RU.KOI8-R ls -l''.
  
  File names are in current locale as well.

Modified:
  head/bin/ls/print.c

Modified: head/bin/ls/print.c
==============================================================================
--- head/bin/ls/print.c	Wed Jun 17 04:18:30 2015	(r284493)
+++ head/bin/ls/print.c	Wed Jun 17 04:26:48 2015	(r284494)
@@ -178,7 +178,7 @@ printlong(const DISPLAY *dp)
 		sp = p->fts_statp;
 		name = getname(p->fts_name);
 		if (name)
-		    xo_emit("{ke:name}", name);
+		    xo_emit("{ke:name/%hs}", name);
 		if (f_inode)
 			xo_emit("{:inode/%*ju} ",
 			    dp->s_inode, (uintmax_t)sp->st_ino);
@@ -214,7 +214,7 @@ printlong(const DISPLAY *dp)
 #endif
 
 		if (name) {
-		    xo_emit("{dk:name}", name);
+		    xo_emit("{dk:name/%hs}", name);
 		    free(name);
 		}
 		



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201506170426.t5H4QngV023706>