Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3258662ybl; Mon, 20 Jan 2020 19:54:57 -0800 (PST) X-Google-Smtp-Source: APXvYqxZNuwu3afU1gv/r6O4PXwVAhkImXiIzMPmIBG7qCG5SbpyomTWZ8vB91YLUpbpztqDrkwc X-Received: by 2002:a9d:6211:: with SMTP id g17mr2074125otj.168.1579578897437; Mon, 20 Jan 2020 19:54:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579578897; cv=none; d=google.com; s=arc-20160816; b=iHuZyKL/bLf6DwtYZ1SEQeWN1hKLKTJdgaRhe0eCfrozs7LyvN274l+AukDwe2NVfK as3qiQl47ieNMcnBeB3q3TSoEJFNL/5Rj0Ra4AlGFSgEgt29JSKbKILHTKUN02Yg2unp ytnt4FBn4BoR2gl8hkQmihDj+q2LoPW2Vy6/42uBiEaDcY7D80oPp1nUZfHFxmRM4LIz Qgc7KKq+t9cr1rsa6UtP32o6gd4htBGfy5F7B8tqd3plRYWVP20XtPJ96B1PIPgN1iAg Ai3v1ROyvQrexKDYeK4S0UuX6kGSqGIGMkgRKdnyrGjPg4HGjLPzHdwNMDh2968bTOk4 aBcw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from; bh=cBwQ6pPRuufbKFf0mAVTiuTSJo/AygwIkDhL1ChoqHg=; b=sx8r7cLxPUIogGqAdpDAJdGNyMduJwYhY4OJmmkv88O+At14aHCjNXKq0gZiw9y7Ht ecMW0IGmXm9TyEPFgH3TbKQE5HVaoloc/e9NHr54cjwUU6zL4oF5w1Mdo0WYyWYJB/Ah 1TukCRkmF2XzQg6Eg2UrhMPLlhwLrPqBWwlcQaL2jeQnHcSrY0+VoipPqSwuqYp2lJBJ HC6jBZd2lnhrOgU9gMDhaC4PgxM4ZFUtEk8f9s41pBc45x6XJyDdNyOCGIDMcdr8jVbb +mJ/1W7uzg7pmbjv5OQOSmToEawYn5GoUliEzIwqSPUToljkWTygWVsDpI3TH5jKl2Kv 8KdQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b20si21883948otf.199.2020.01.20.19.54.45; Mon, 20 Jan 2020 19:54:57 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728748AbgAUDwy (ORCPT + 99 others); Mon, 20 Jan 2020 22:52:54 -0500 Received: from mail.parknet.co.jp ([210.171.160.6]:52628 "EHLO mail.parknet.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727009AbgAUDwy (ORCPT ); Mon, 20 Jan 2020 22:52:54 -0500 Received: from ibmpc.myhome.or.jp (server.parknet.ne.jp [210.171.168.39]) by mail.parknet.co.jp (Postfix) with ESMTPSA id 726CC129664; Tue, 21 Jan 2020 12:52:53 +0900 (JST) Received: from devron.myhome.or.jp (foobar@devron.myhome.or.jp [192.168.0.3]) by ibmpc.myhome.or.jp (8.15.2/8.15.2/Debian-16) with ESMTPS id 00L3qq9W045329 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Tue, 21 Jan 2020 12:52:53 +0900 Received: from devron.myhome.or.jp (foobar@localhost [127.0.0.1]) by devron.myhome.or.jp (8.15.2/8.15.2/Debian-16) with ESMTPS id 00L3qpbp049522 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Tue, 21 Jan 2020 12:52:51 +0900 Received: (from hirofumi@localhost) by devron.myhome.or.jp (8.15.2/8.15.2/Submit) id 00L3qoc3049521; Tue, 21 Jan 2020 12:52:50 +0900 From: OGAWA Hirofumi To: "Theodore Y. Ts'o" Cc: Pali =?iso-8859-1?Q?Roh=E1r?= , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, Namjae Jeon , Gabriel Krisman Bertazi Subject: Re: vfat: Broken case-insensitive support for UTF-8 References: <20200119221455.bac7dc55g56q2l4r@pali> <87sgkan57p.fsf@mail.parknet.co.jp> <20200120173215.GF15860@mit.edu> Date: Tue, 21 Jan 2020 12:52:50 +0900 In-Reply-To: <20200120173215.GF15860@mit.edu> (Theodore Y. Ts'o's message of "Mon, 20 Jan 2020 12:32:15 -0500") Message-ID: <87eevt4ga5.fsf@mail.parknet.co.jp> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org "Theodore Y. Ts'o" writes: > On Mon, Jan 20, 2020 at 01:04:42PM +0900, OGAWA Hirofumi wrote: >> >> To be perfect, the table would have to emulate what Windows use. It can >> be unicode standard, or something other. And other fs can use different >> what Windows use. > > The big question is *which* version of Windows. vfat has been in use > for over two decades, and vfat predates Window starting to use Unicode > in 2001. Before that, vfat would have been using whatever code page > its local Windows installation was set to sue; and I'm not sure if > there was space in the FAT headers to indicate the codepage in use. > > It would be entertaining for someone with ancient versions of Windows > 9x to create some floppy images using codepage 437 and 450, and then > see what a modern Windows system does with those VFAT images --- would > it break horibbly when it tries to interpret them as UTF-16? Or would > it figure it out? And if so, how? Inquiring minds want to know.... Perfect encode converter have to support all versions if Windows changed the table. However, right. Normal user would be ok with current unicode standard, and doesn't care subtle differences. But strict custom system will care subtle differences, it is why I'm saying *perfect*. I'm not against to use current unicode standard. Just a noting. BTW, VFAT has to store the both of shortname (codepage) and longname (UTF16), and using both names to open a file. So Windows should be using current locale codepage to make shortname even latest Windows for VFAT. And before vfat (in linux fs driver, msdos) is using shortname (codepage) only. Thanks. -- OGAWA Hirofumi