Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1363354
| Path | csiph.com!aioe.org!gothmog.csi.it!bofh.it!news.nic.it!robomod |
|---|---|
| From | Josh Boyer <jwboyer@fedoraproject.org> |
| Newsgroups | linux.kernel |
| Subject | Re: [PATCHv2] fat: add config option to set UTF-8 mount option by default |
| Date | Wed, 23 Mar 2016 12:30:02 +0100 |
| Message-ID | <rfP98-2DP-17@gated-at.bofh.it> (permalink) |
| References | <raql6-1Bi-57@gated-at.bofh.it> <rfMbg-CU-5@gated-at.bofh.it> |
| Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc; bh=r/4pen06TPB/ej04Efa9XKLxUp6r7xvqertybESOVdA=; b=ZAHgW6F5pBJynfBJz6ydyB709YMp4jf/MX8z9H8xIzX/+wRyYKO1lO522UuBdLwLPc vIJqLbLv7jXA+POjtC1EdaoQbQxhx/WkmUQadMLFrwU94xH3pBlqcJSoC68RM9fIUa0c IftZKJ6rsKfxVD8xLUTiE2FYgzdM/K1CpKWPyyVBoTMfMMEVMv57ZQzaIB7k5JTw1kVH Jv9swJBKS9F9QgGXEmoiyy6icL8auUogtoRn7rSQV6bY3qRvvx40OUZVDlf73OjwOPcM w9f2kyWI5a/GIaNIrASnxLv/L/0GTF1nYaFuqcOFj+Ctvkom8IlA4tHHWU1YeXlkdrHh 0sGg== |
| X-Google-Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:date :message-id:subject:from:to:cc; bh=r/4pen06TPB/ej04Efa9XKLxUp6r7xvqertybESOVdA=; b=ZW7jDo2zbvfJeyKdAmGVOMFw/52WUyZtJmQnTTbaDUs7f/Igu3X9xdvzQj8m/CbWoF ggd3CrWcXJks+gvzlG3awHiZ6vd7wFPQxx6+I+R934UtmJIgPESGQf90ceie6uLkcLgg 0143gfcSFNjRbpmV2wf3IZRLLJA0xZ2V068XdVmAEdu4wx5/j1CSPYknWQU9JcKHPh7U laIPPCG6RmOwASSfip87H47Fr/gdrmP1A2NOMTUMUgZroQi+8HxxN8Tn51UlViUGbq1l kfPEuBSt75Q7/1caUKifxAzzepdPGX0G0JklxmX/6QViZdzfW04sWj0cmXtKxetdTaIf MmXg== |
| X-Gm-Message-State | AD7BkJJfMidA5jzT1bHES6NTfyy7NRu7VRtT+09uJZWH8HQS9YuceJDS0U0rr8glt31tnDewIHaRaA04sPQqXw== |
| MIME-Version | 1.0 |
| X-Received | by 10.157.40.150 with SMTP id s22mr1130890ota.122.1458732511145; Wed, 23 Mar 2016 04:28:31 -0700 (PDT) |
| X-Google-Sender-Auth | 1EzhwvEbGCUU6CigTX63Iikhf4w |
| Content-Type | text/plain; charset=UTF-8 |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 60 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | "Maciej S. Szmigiero" <mail@maciej.szmigiero.name>, OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>, Jonathan Corbet <corbet@lwn.net>, "linux-doc@vger.kernel.org" <linux-doc@vger.kernel.org>, linux-kernel <linux-kernel@vger.kernel.org> |
| X-Original-Date | Wed, 23 Mar 2016 07:28:31 -0400 |
| X-Original-Message-ID | <CA+5PVA63GWcRWmpgJHyx3ea66mFSoNRRA9Wf+yY2KQeRvjy7KA@mail.gmail.com> |
| X-Original-References | <56DED942.3060900@maciej.szmigiero.name> <CAMuHMdWOcR3zjx9gHsGKmsb22LQv5=pWD3hur=XPv7_Qr4rvxA@mail.gmail.com> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1363354 |
Show key headers only | View raw
On Wed, Mar 23, 2016 at 4:17 AM, Geert Uytterhoeven <geert@linux-m68k.org> wrote: > On Tue, Mar 8, 2016 at 2:53 PM, Maciej S. Szmigiero > <mail@maciej.szmigiero.name> wrote: >> FAT has long supported its own default file name encoding >> config setting, separate from CONFIG_NLS_DEFAULT. >> >> However, if UTF-8 encoded file names are desired FAT >> character set should not be set to utf8 since this would >> make file names case sensitive even if case insensitive >> matching is requested. >> Instead, "utf8" mount options should be provided to enable >> UTF-8 file names in FAT file system. >> >> Unfortunately, there was no possibility to set the default >> value of this option so on UTF-8 system "utf8" mount option >> had to be added manually to most FAT mounts. >> >> This patch adds config option to set such default value. >> >> Signed-off-by: Maciej S. Szmigiero <mail@maciej.szmigiero.name> > >> --- a/fs/fat/Kconfig >> +++ b/fs/fat/Kconfig >> @@ -93,8 +93,24 @@ config FAT_DEFAULT_IOCHARSET >> that most of your FAT filesystems use, and can be overridden >> with the "iocharset" mount option for FAT filesystems. >> Note that "utf8" is not recommended for FAT filesystems. >> - If unsure, you shouldn't set "utf8" here. >> + If unsure, you shouldn't set "utf8" here - select the next option >> + instead if you would like to use UTF-8 encoded file names by default. >> See <file:Documentation/filesystems/vfat.txt> for more information. >> >> Enable any character sets you need in File Systems/Native Language >> Support. >> + >> +config FAT_DEFAULT_UTF8 >> + bool "Enable FAT UTF-8 option by default" >> + depends on VFAT_FS >> + default n >> + help >> + Set this if you would like to have "utf8" mount option set >> + by default when mounting FAT filesystems. >> + >> + Even if you say Y here can always disable UTF-8 for >> + particular mount by adding "utf8=0" to mount options. >> + >> + Say Y if you use UTF-8 encoding for file names, N otherwise. >> + >> + See <file:Documentation/filesystems/vfat.txt> for more information. > > What's the recommended value of CONFIG_FAT_DEFAULT_UTF8 for > a (distro) defconfig? Yes, I'm curious about this as well. My initial assumption is to leave it off, given that if you turn it on when it wasn't previously it will change the behavior. I would also assume that is why it is marked as default n. josh
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: [PATCHv2] fat: add config option to set UTF-8 mount option by default Geert Uytterhoeven <geert@linux-m68k.org> - 2016-03-23 09:20 +0100
Re: [PATCHv2] fat: add config option to set UTF-8 mount option by default Josh Boyer <jwboyer@fedoraproject.org> - 2016-03-23 12:30 +0100
Re: [PATCHv2] fat: add config option to set UTF-8 mount option by default Geert Uytterhoeven <geert@linux-m68k.org> - 2016-03-23 13:30 +0100
Re: [PATCHv2] fat: add config option to set UTF-8 mount option by default Josh Boyer <jwboyer@fedoraproject.org> - 2016-03-23 14:00 +0100
Re: [PATCHv2] fat: add config option to set UTF-8 mount option by default "Maciej S. Szmigiero" <mail@maciej.szmigiero.name> - 2016-03-23 17:50 +0100
csiph-web