Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1352663

Re: [PATCH] fat: add config option to set UTF-8 mount option by default

From OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Newsgroups linux.kernel
Subject Re: [PATCH] fat: add config option to set UTF-8 mount option by default
Date 2016-03-08 07:30 +0100
Message-ID <rajjA-5yv-5@gated-at.bofh.it> (permalink)
References <r9syC-49o-19@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


"Maciej S. Szmigiero" <mail@maciej.szmigiero.name> writes:

> +#ifdef CONFIG_FAT_DEFAULT_UTF8
> +	opts->utf8 = is_vfat;
> +#else
> +	opts->utf8 = 0;
> +#endif
> +

Maybe, better to use IS_ENABLED(CONFIG_FAT_DEFAULT_UTF8)?

I.e.,

	opts->utf8 = IS_ENABLED(CONFIG_FAT_DEFAULT_UTF8) && is_vfat;

Thanks.
-- 
OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>

Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

[PATCH] fat: add config option to set UTF-8 mount option by default "Maciej S. Szmigiero" <mail@maciej.szmigiero.name> - 2016-03-05 23:10 +0100
  Re: [PATCH] fat: add config option to set UTF-8 mount option by default OGAWA Hirofumi <hirofumi@mail.parknet.co.jp> - 2016-03-08 07:30 +0100

csiph-web