Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp4651320imm; Mon, 14 May 2018 10:33:54 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrADffL9W54zNz5xdZvB+Hjep+dqQ8Ew7VUmd4kk7vN9vZzQD2OiE6giXW2qcG8NG4EpEha X-Received: by 2002:a17:902:7e05:: with SMTP id b5-v6mr10568337plm.230.1526319234777; Mon, 14 May 2018 10:33:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526319234; cv=none; d=google.com; s=arc-20160816; b=OqIYmavsswpkBYhJeDPinmqTqxAw7S9J3XN3DrLEjQtTsCWmhqGHZTTLhYN6zcpadk FYZPLEbNr0Dscx7RKky2QLocKt+A9PF7wPG4LF4b/4Rv1ZDttx/6te4CTYvd9WVu66pK HDeHkcHCark2RuiWhh9qaBnwsTRN1XFBGIm0a8VORzftUQxorHIvSOkuNxeoWEhMiKAi N2uXQT8t/mQ0tJbe8mN8Nr2wHFcZfvbYI6NbEt0rjIs/bQlzhq+v8ParWPWg+kuehHQI 4XiB5nDg/sIisK15yPzmNPYyaoMafonvQkNMHH9uHephEe+N6tTtFcZ+U8GTTNPPSGQV 7j8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date :arc-authentication-results; bh=4zWCXGXXWwwszmmdMvKDOcE2ExPqfywq1LF5gX1o3Ao=; b=XKMVPmLB2rDccc0NRYgsIzksbheu3xW96Gv1CmQ+Z5MgRVIT5G7KMmGUqjHO5l9O4v 5uHcB9zLOsMwBV7RXI7XNaH6R9cWAIHeRYE/1Brj+AnPkSyPJmn9fDmV2WhFSYRi0lH+ yA7lnU18tq1rV/v8YYmeidYMSKA/tsT+FNO2Lb5sph432oBk9mhgfpn1tvneYsPFM5uq foDJi4jkT5pJjp8nWN4F6SVhDvOziXLpOti/ARixmKNdsr26bK1voDDoOVBL0smOl7w+ lsTwx9VIHkfULeSMBlenfn73Zr3ouq19u3gi6TNFw/FF2FyS4oZ+BlN9KDVpFldFQFJl OCVQ== 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 p11-v6si9420094pfh.249.2018.05.14.10.33.39; Mon, 14 May 2018 10:33:54 -0700 (PDT) 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 S932325AbeENQ64 (ORCPT + 99 others); Mon, 14 May 2018 12:58:56 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:36097 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751498AbeENQ6y (ORCPT ); Mon, 14 May 2018 12:58:54 -0400 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id 6DF2C804CD; Mon, 14 May 2018 18:58:53 +0200 (CEST) Date: Mon, 14 May 2018 18:58:44 +0200 From: Pavel Machek To: Ulf Magnusson Cc: Randy Dunlap , Linux Kbuild mailing list , Linux Kernel Mailing List Subject: Re: [ANNOUNCE] Kconfiglib menuconfig implementation Message-ID: <20180514165844.GD27984@xo-6d-61-c0.localdomain> References: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi! > > config CAN_PEAK_PCIEFD > > depends on PCI > > tristate "PEAK-System PCAN-PCIe FD cards" > > ---help--- > > This driver adds support for the PEAK-System PCI Express FD > > CAN-FD cards family. > > These 1x or 2x CAN-FD channels cards offer CAN 2.0 a/b as well as > > CAN-FD access to the CAN bus. Besides the nominal bitrate of up to > > 1 Mbit/s, the data bytes of CAN-FD frames can be transmitted with > > up to 12 Mbit/s. A galvanic isolation of the CAN ports protects the > > electronics of the card and the respective computer against > > disturbances of up to 500 Volts. The PCAN-PCI Express FD can be > > operated with ambient temperatures in a range of -40 to +85 ?C. > > > > > > kconfiglib.KconfigSyntaxError: > > Malformed ascii in drivers/net/can/peak_canfd/Kconfig > > Context: b't temperatures in a range of -40 to +85 \xc2\xb0C.\n' > > Problematic data: b'\xc2' > > Reason: ordinal not in range(128) > > > > > > thanks, > > -- > > ~Randy > > Thanks for trying it out! > > You're probably running in the C locale, which implies an ASCII > encoding. That has caused enough trouble that the Python devs decided > to automatically convert it to UTF-8 in Python 3.7: > https://www.python.org/dev/peps/pep-0538/. LC_CTYPE=C.UTF-8 should fix > it. > > It's a bit silly to have it crash for something like that though. I > could force UTF-8 instead of respecting the locale (though it feels > neater to respect settings), or tell Python to ignore decoding errors. > Should probably do something at least... Well, Kconfig files are utf-8, as is the rest of kernel. So yes, you should respect $LC_CTYPE for display etc, but you should always assume Kconfig files are utf-8... and that does not need to be optional. Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html