Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp7537872rwl; Tue, 10 Jan 2023 02:02:35 -0800 (PST) X-Google-Smtp-Source: AMrXdXuXQyvH8vhid1k9h4wnsn/3oWhkOeLjQk1sPXx46nyHv3Z/mAc51LceK88slKq5zShZFaoD X-Received: by 2002:a17:902:c3c6:b0:192:8ec7:88cb with SMTP id j6-20020a170902c3c600b001928ec788cbmr49717724plj.12.1673344955652; Tue, 10 Jan 2023 02:02:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673344955; cv=none; d=google.com; s=arc-20160816; b=PpDtfPoyk8APwE1Ux5J0Iz/bUbitMRXDBIURhtFfs/Jkc6KxBA0KTJscWCKc0Q60CM mguhGqf9ORC0YkWKBYXsESrFIkccYZikB81EblKcUKGYuIffuyg8Rb1QlOHp/4VWXCI3 dJIrNmCMon5atM8oIG00+IdzYQcWuPOtgwuzpzWZGwgXdVkpZSXGI2sPsKFLjtHoz+eT +ByaPcCA7Gc53ghTtQZqkud0DTJuYiKSX/Z5jZJ31U5cJ7D8yaGPEfOCTczapOchjGQ/ N4qpEJCOI/2lA9dtAU9YEg+NMusBoOMvJ50U5kKqs1vgF3M9eYA2w7ECQYPHvRUuVjoJ Zyrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:message-id:date:references:in-reply-to:subject:cc:to :from; bh=QeI2KvSODqaPaGsr0hUylVL0mF+JlCxhJVS3qW4jLHY=; b=1B2+6rdEaHnjF8HrLnwEKsx+/b/SGLpsNfc3OTanAwrvTzcmkMF1uaVkzHbzoq/EFs mTRaCKSARzZDQC5Yg+7Q10R3LbKJ1UYIt+0YKEZhQQRrM51QSq2wdTADjeLIrShwCQEL Zc3/FX+AL/GzOkyQD0njeTZL5znGvTNP6AU2XlDWprfzoCflETH/uzpYMVyGJMpvnTt0 /Psp4maEAv0JPjQCCaHI8EViGpFpyxoCdb7T6SmEAUhBXe4YIcm81V6as4GNANda7YjR B7G4qy2JCJue6izKSZORL1QWefMG5W2ormf+Vui1BRXIWBsZ8JI+rlqpOnyRAqkxFF7g e/OQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x15-20020a170902ec8f00b00176db49b734si12050660plg.283.2023.01.10.02.02.29; Tue, 10 Jan 2023 02:02:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231963AbjAJJce (ORCPT + 53 others); Tue, 10 Jan 2023 04:32:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43768 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238179AbjAJJcC (ORCPT ); Tue, 10 Jan 2023 04:32:02 -0500 Received: from mail.parknet.co.jp (mail.parknet.co.jp [210.171.160.6]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 9C53F1741D; Tue, 10 Jan 2023 01:32:01 -0800 (PST) Received: from ibmpc.myhome.or.jp (server.parknet.ne.jp [210.171.168.39]) by mail.parknet.co.jp (Postfix) with ESMTPSA id B9B3B2003FB8; Tue, 10 Jan 2023 18:23:34 +0900 (JST) Received: from devron.myhome.or.jp (foobar@devron.myhome.or.jp [192.168.0.3]) by ibmpc.myhome.or.jp (8.17.1.9/8.17.1.9/Debian-1) with ESMTPS id 30A9NXf3104299 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Tue, 10 Jan 2023 18:23:34 +0900 Received: from devron.myhome.or.jp (foobar@localhost [127.0.0.1]) by devron.myhome.or.jp (8.17.1.9/8.17.1.9/Debian-1) with ESMTPS id 30A9NXKF371088 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Tue, 10 Jan 2023 18:23:33 +0900 Received: (from hirofumi@localhost) by devron.myhome.or.jp (8.17.1.9/8.17.1.9/Submit) id 30A9NXwt371087; Tue, 10 Jan 2023 18:23:33 +0900 From: OGAWA Hirofumi To: Pali =?iso-8859-1?Q?Roh=E1r?= Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Jan Kara , Alexander Viro Subject: Re: [RFC PATCH 3/3] nls: Replace default nls table by correct iso8859-1 table In-Reply-To: <20221226144301.16382-4-pali@kernel.org> ("Pali =?iso-8859-1?Q?Roh=E1r=22's?= message of "Mon, 26 Dec 2022 15:43:01 +0100") References: <20221226144301.16382-1-pali@kernel.org> <20221226144301.16382-4-pali@kernel.org> Date: Tue, 10 Jan 2023 18:23:33 +0900 Message-ID: <87v8leu4iy.fsf@mail.parknet.co.jp> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Pali Roh?r writes: [...] > -static struct nls_table default_table = { > - .charset = "default", > +static struct nls_table iso8859_1_table = { > + .charset = "iso8859-1", > .uni2char = uni2char, > .char2uni = char2uni, > .charset2lower = charset2lower, > .charset2upper = charset2upper, > }; iocharset=default was gone with this (user visible) change? (nobody notice it though) > -/* Returns a simple default translation table */ > +/* Returns a default translation table */ > struct nls_table *load_nls_default(void) > { > struct nls_table *default_nls; > @@ -537,9 +419,22 @@ struct nls_table *load_nls_default(void) > if (default_nls != NULL) > return default_nls; > else > - return &default_table; > + return &iso8859_1_table; > +} > + > +static int __init init_nls(void) > +{ > + return register_nls(&iso8859_1_table); > } > > +static void __exit exit_nls(void) > +{ > + unregister_nls(&iso8859_1_table); > +} > + > +module_init(init_nls) > +module_exit(exit_nls) [...] Do we need to merge nls_iso8859-1.c to nls_base.c? obj-$(CONFIG_NLS) += nls_iso8859-1.o nls_base.o Something like this (untested), maybe cleaner. Thanks. -- OGAWA Hirofumi