From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#4157: 23.1.50; faulty character characterisation for =?UTF-8?Q?=C3=A4?= Date: Thu, 10 Oct 2019 17:07:15 -0400 Message-ID: References: <83blupt6cd.fsf@gnu.org> <83ftk0sv7t.fsf@gnu.org> <83lftsqvgp.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="229777"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: Peter Dyballa , stefan@marxist.se, 4157@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Oct 10 23:08:13 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iIffQ-000xY1-PM for geb-bug-gnu-emacs@m.gmane.org; Thu, 10 Oct 2019 23:08:13 +0200 Original-Received: from localhost ([::1]:44266 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iIffO-0000zL-Lt for geb-bug-gnu-emacs@m.gmane.org; Thu, 10 Oct 2019 17:08:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36678) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iIffH-0000zC-1z for bug-gnu-emacs@gnu.org; Thu, 10 Oct 2019 17:08:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iIffG-00044n-1J for bug-gnu-emacs@gnu.org; Thu, 10 Oct 2019 17:08:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48434) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iIffF-00044j-Uw for bug-gnu-emacs@gnu.org; Thu, 10 Oct 2019 17:08:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iIffF-0001Nu-NU for bug-gnu-emacs@gnu.org; Thu, 10 Oct 2019 17:08:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 10 Oct 2019 21:08:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 4157 X-GNU-PR-Package: emacs Original-Received: via spool by 4157-submit@debbugs.gnu.org id=B4157.15707416475272 (code B ref 4157); Thu, 10 Oct 2019 21:08:01 +0000 Original-Received: (at 4157) by debbugs.gnu.org; 10 Oct 2019 21:07:27 +0000 Original-Received: from localhost ([127.0.0.1]:57255 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iIfeg-0001My-Rq for submit@debbugs.gnu.org; Thu, 10 Oct 2019 17:07:27 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:49482) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iIfef-0001Mj-3p for 4157@debbugs.gnu.org; Thu, 10 Oct 2019 17:07:25 -0400 Original-Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id AD6DE448D72; Thu, 10 Oct 2019 17:07:19 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id E0FE3448D6C; Thu, 10 Oct 2019 17:07:17 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1570741637; bh=KpYRka0IJTO9REPz4S4qtFlXWstoD9IvKDYOrj1qIL8=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=QMjhhdrZOfJPy3RLlYpJVaUAJxtUT0DQgW3XfR/wTiAEXRQHNWT7uRDBMpWjECpPf lGLVEIYfwpKAMidFsYWuXevm5e/4/YQcASwRjERpbvxt05jqnFpBHpPhO+TgRALCb1 VaDWd8nAw0TNfS2yAAUe4QMNTF9DUmyLvUQI183KgfCcqoc2EX1fffgz2RqUOZbvLn 1xjPl8QM9pXPRPdMVERClD6QsFotliFZXfKPHk5Kf63hYdi48aUOut0fS+ztYwKXF+ k/KPsVjUjT+1xUUnL/tG8YZ7dh3xc7ubYJMll89vU5O1QpjK1633GjkODlrS8LmksX OXhqsFVM6zmzQ== Original-Received: from lechazo (lechon.iro.umontreal.ca [132.204.27.242]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id C8A4C120679; Thu, 10 Oct 2019 17:07:17 -0400 (EDT) In-Reply-To: <83lftsqvgp.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 10 Oct 2019 21:57:58 +0300") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:168903 Archived-At: >> Alright, file names in Mac OS X were recorded in a special form of UTF-8, >> accented characters as two characters. GNU ls outputs the month name >> correctly, but not the file name, which is still held in UTF-8 and not >> converted to ISO Latin-9. So it's more of a GNU ls bug. > > No, I don't think it is. No version of 'ls' I know of, including GNU > 'ls', recodes file names, they just emit the bytestream they find in > the directory. The idea is that you create files and display them > under the same setting of the locale's codeset. If you change the > codeset between the time you created the file and the time you display > it, you are toast. AFAIK, this happens on any Posix filesystem. There are different ways to look at the problem and attribute blame (e.g. since macosx enforces file names to be utf-8 (contrary to POSIX), `ls` in macosx *could* do the recoding of filenames reliably), but in any case I think it's clear for me that it's not a bug in Emacs. Stefan