Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp2736478rwb; Mon, 15 Aug 2022 10:27:32 -0700 (PDT) X-Google-Smtp-Source: AA6agR6izGhxJ+c7fL97cUTtZ/hsq6fq4ykTFd3r/eypGVtwSRmOu4oAmXVfwXIKxWFcZhuPBWh5 X-Received: by 2002:a17:90a:c789:b0:1fa:6bc0:77f6 with SMTP id gn9-20020a17090ac78900b001fa6bc077f6mr11099424pjb.1.1660584452601; Mon, 15 Aug 2022 10:27:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660584452; cv=none; d=google.com; s=arc-20160816; b=e3J+6kzYQomN+SCFvWdn8XoYMUrTYoEq3ASbIL4PCWs2BMP6ar4aB5OB06Z+an/Jc9 5eD1SLm2KxnR2KEnWvg+oDa7mwIWj7vEovN5c3o0U2t9swBuGsIQaQ9PNm06L52tHDsU sH67pGantyLdJNw3mbOCH390PN1qOfkA0d/eXj4FFKqTqtUWFlPptWamGdSHjZkVwVwG VveW9NRfYoZc+ageXzXK1XyAmTgopt8FOsrR9B2YYiCiTsrJKx3E2Divcnp06DQ93DR1 sZ5ROKUXy4A7QMUus4QOOdzKSP+mVFKi5i/bo1q6ORItWD/drz8DRMO6zCN7duoWEOot hCxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organisation:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=yWBNLv5ITweAn/j7OpqLtYfe91qJS9hpyZzOVkmgnCo=; b=isANNbjrgBdJxYRjXPerJdZdiopWzf831kVZV/rRKLu2mB7Bk65958DvOA32P04xKd EZgwQq1/R4NZ59IK/q5I/l4PFQlBWH/9dWXrJ5Ro4pXAoWm2sU/8Krc0D+hxcwFF91UK JdQO8dxpQF6XeGYiNohCh2O/LqstPX38UL7topzVOhtDzFMc3H/QC6lIaUMoxI/Iu03M lg8QCBb8G1kiBxKSDF7K9ZyZPo8m9sKl86UMecBTj7c59hwGWFS7J3fvRMhTkmZWlzkq 7FJI0x5vUtcng9mnBWTKQknP/1FRFmbynqsZfRtlyGVV4ief3ELt3ZmHPld0dkrA7CO4 EEbw== 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 y10-20020a17090322ca00b0016cedf6b6a2si12792598plg.52.2022.08.15.10.27.21; Mon, 15 Aug 2022 10:27:32 -0700 (PDT) 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 S230022AbiHORTD (ORCPT + 99 others); Mon, 15 Aug 2022 13:19:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37680 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229582AbiHORTB (ORCPT ); Mon, 15 Aug 2022 13:19:01 -0400 Received: from zeeaster.vergenet.net (zeeaster.vergenet.net [206.189.110.174]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6A21627CF6 for ; Mon, 15 Aug 2022 10:18:59 -0700 (PDT) Received: from madeliefje.horms.nl (2a02-a44a-2918-403-201-8eff-fe22-8fea.fixed6.kpn.net [IPv6:2a02:a44a:2918:403:201:8eff:fe22:8fea]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by zeeaster.vergenet.net (Postfix) with ESMTPSA id 9DBEE20101; Mon, 15 Aug 2022 17:18:57 +0000 (UTC) Received: by madeliefje.horms.nl (Postfix, from userid 7100) id 6E5E6D3C; Mon, 15 Aug 2022 18:18:57 +0100 (BST) Date: Mon, 15 Aug 2022 18:18:57 +0100 From: Simon Horman To: Bjorn Helgaas Cc: Liu Song , bhelgaas@google.com, pablo@netfilter.org, davem@davemloft.net, nathan@kernel.org, apw@canonical.com, joe@perches.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH] Kconfig: eliminate abnormal characters displayed under menuconfig Message-ID: References: <1659435153-119538-1-git-send-email-liusong@linux.alibaba.com> <20220809025147.GA1264335@bhelgaas> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20220809025147.GA1264335@bhelgaas> Organisation: Horms Solutions BV X-Virus-Scanned: clamav-milter 0.103.6 at zeeaster X-Virus-Status: Clean X-Spam-Status: No, score=-4.0 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE 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 On Mon, Aug 08, 2022 at 09:51:47PM -0500, Bjorn Helgaas wrote: > On Tue, Aug 02, 2022 at 06:12:33PM +0800, Liu Song wrote: > > From: Liu Song > > > > Use "find ./linux/* | grep Kconfig | xargs file | grep UTF", can find > > files with utf-8 encoded characters, these files will display garbled > > characters in menuconfig, except for characters with special meanings > > that cannot be modified, modify the characters with obvious errors to > > eliminate the wrong display under meunconfig. > > > > Signed-off-by: Liu Song > > Suggested-by: Bjorn Helgaas > > I did suggest fixing everything at once. But I think there are > actually two problems here. The first is that some are just wrong, > e.g., drivers/pci/Kconfig using CYRILLIC SMALL LETTER DZE instead of > "s", or net/netfilter/ipvs/Kconfig using NO-BREAK SPACE for no good > reason. > > arch/Kconfig looks like it's using RIGHT SINGLE QUOTATION MARK instead > of the basic APOSTROPHE. That one is debatable; I think it's fair to > argue that RIGHT SINGLE QUOTATION MARK would be preferred if rendered > correctly. > > The second problem is that I think menuconfig doesn't handle UTF-8 > correctly. For example, in a gnome terminal with the default > LC_ALL=en_US.UTF-8, these look fine: > > $ grep -A10 MTD_SPI_NOR_USE_4K_SECTORS drivers/mtd/spi-nor/Kconfig > ... > 64 KiB block instead of 16 × 4 KiB sectors. > > $ grep -A1 MTD_NAND_CAFE drivers/mtd/nand/raw/Kconfig > config MTD_NAND_CAFE > tristate "OLPC CAFÉ NAND controller" > > But when menuconfig in the same terminal displays that same text, it > looks like "16 ~W 4 KiB sectors" and "OLPC CAF ~I NAND". > > On the other hand, gconfig and xconfig do render these correctly. So > I think there's something wrong with UTF-8 in menuconfig, and we > should fix that as well. > > Anyway, I'm fine with this patch as far as it goes: > > Acked-by: Bjorn Helgaas IPVS portion: Acked-by: Simon Horman