From owner-freebsd-current@FreeBSD.ORG Wed Jun 17 16:35:52 2015 Return-Path: Delivered-To: current@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 17D807A3 for ; Wed, 17 Jun 2015 16:35:52 +0000 (UTC) (envelope-from mailing-machine@vniz.net) Received: from mail-la0-f54.google.com (mail-la0-f54.google.com [209.85.215.54]) (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 AA552BBB for ; Wed, 17 Jun 2015 16:35:51 +0000 (UTC) (envelope-from mailing-machine@vniz.net) Received: by labbc20 with SMTP id bc20so37052845lab.1 for ; Wed, 17 Jun 2015 09:35:44 -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:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-type :content-transfer-encoding; bh=ZQGlO7FPuxW0eUtSUfzR8hyLAubOUzLrxwmH/73nJvE=; b=SEYnuaHzrnuOtCs7IrP27tt6r5kPyAkDe+ONVqobpo2rME7XoK7R6UtY1pM81MUZuR RJUo1sywkF67HaLVU4g4SnFbSF0J1dD1XKdmS9riylvVOltULK+bondm2o2l2Rtdxq9j G0PSKGjcd5DWVpwhPlTogbAe2etL3CS5ZHJhG0hR1pI4Liw3iLfiEQNCt5jVJO/cl2oy yCgGenDY6lE7TC21V99d+KN1Q/cX+7Xoq2QOIvpbk9qcwS8qw4dswq2JrHS3Uv4/J1Qr D40qnnk3DIC1U/Zi5JN411AJF08R0bPM5WrGFZ2ghsGSByltZazfqweMTgQvn8vnC6x9 8LTA== X-Gm-Message-State: ALoCoQlluFF/aJ6EtkGyOYWuyiX6D328YzlzQiZ47KjPbkFgVveD5CujkBNz0ifi+W1RzdqDb5Ht X-Received: by 10.112.219.201 with SMTP id pq9mr8789844lbc.109.1434558943886; Wed, 17 Jun 2015 09:35:43 -0700 (PDT) Received: from [192.168.1.2] ([89.169.173.68]) by mx.google.com with ESMTPSA id k10sm1074621lbq.9.2015.06.17.09.35.42 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 17 Jun 2015 09:35:43 -0700 (PDT) Subject: Re: ls is broken for non-C locales due to libxo To: Marcel Moolenaar References: <48B53C84-E4F7-4E88-B07D-7489FF585430@freebsd.org> <5580DEB0.7080908@freebsd.org> <5580EDB0.4040203@freebsd.org> Cc: "current@freebsd.org list" , Marcel Moolenaar From: Andrey Chernov Message-ID: <5581A1DD.20209@freebsd.org> Date: Wed, 17 Jun 2015 19:35:41 +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: Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Jun 2015 16:35:52 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 On 17.06.2015 16:58, Marcel Moolenaar wrote: > >> On Jun 16, 2015, at 9:53 PM, Andrey Chernov >> wrote: > >> Should be no any %FF, but single char in pre libxo ls or nothing >> in post libxo one. >> >> Use LANG=ru_RU.KOI8-R before touch command. It looks like you >> create file with name "%FF" instead. > > No difference: > > fbsdvm64% env LANG=ru_RU.KOI8-R touch `env LANG=ru_RU.KOI8-R printf > "\377"` fbsdvm64% ls -al total 8 -rw-r--r-- 1 marcel staff 0 > Jun 17 06:56 %FF drwxr-xr-x 3 marcel staff 102 Jun 17 06:56 . > drwxr-xr-x 12 marcel staff 408 Jun 17 06:55 .. The original bug was fixed in r284494 by kan@ In any case, what you demonstrates is very strange and can be display (console,xterm,etc.) bug or probably libxio bug, because ls alone _never_ use %xx encoding, it should print '?' for invalid character or just character itself for valid ones. - -- http://ache.vniz.net/ -----BEGIN PGP SIGNATURE----- iQEcBAEBCAAGBQJVgaHdAAoJEKUckv0MjfbKtUkIAMFtFY+o3CQ607jxr5sRkoFE wh27gsUYA/F9FfLmzzcTI+iMPJI0Q72gMY/lgVlaekGSSehZ6EMOvgsRZsSHhLuC b8bDL2ij2u+3eqlbhurpww6ZiKHLYWkBcO4ZKaoyZ0umXyij8sp0dC5WKXOdBqtR 4OGfr9SEuodnKqKEjBAakPBzKaefwHEVIpVMYV2K7ajFswRV3vfRk7n0CTz0K5lZ qVXSrICOPJetGPtknZw9J/XQbbgnIQ9sKHE6LX0bBBVajSjrnJFtk7lSqGozYC8i 6GekMc3huR4IkV1JtxNR5OEH2GsoPiJwg/4XeO5ZeAHawrMtaznVBt5oVSAxaZc= =mmEI -----END PGP SIGNATURE-----