From owner-svn-src-all@FreeBSD.ORG Wed May 22 03:43:56 2013 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 73F6CE09 for ; Wed, 22 May 2013 03:43:56 +0000 (UTC) (envelope-from mailer-daemon@vniz.net) Received: from mail-lb0-f179.google.com (mail-lb0-f179.google.com [209.85.217.179]) by mx1.freebsd.org (Postfix) with ESMTP id 028F95E6 for ; Wed, 22 May 2013 03:43:55 +0000 (UTC) Received: by mail-lb0-f179.google.com with SMTP id r11so1536855lbv.24 for ; Tue, 21 May 2013 20:43:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:openpgp:content-type :content-transfer-encoding:x-gm-message-state; bh=FNeXZjLhopoYR2I6by0FvzCthBdW5X9OvXqdCvPpLnY=; b=HHz/HJ56vuUUqhi8dWeQdjquboPcQKH0QxIA/aiH2YC82bfjQt0Bugg2O9PZ9dvbIE mUNefkM2pOwtv7F0uCNnai+Au/qKPNKrsGpribj5S48CIwqqGR8F7kv3TprTGvHO7DjS yiBU7XxW3eoU7pWKcc4TygLJoVK3rqqXg4djN5xH0/IXheDa+DUq54TvHOzHfMi2/Mif Z4WkIkX0H11VvozquZyKNCX5m/XJUj7C3zqeo3Ah5gZDq79/HSFOOaepNyqsJSj3bwMI 0CEsD+05Zd93CEzu9imZKwiE0FikejtUSYgVTTP15TUiuvSkOY+OW77t4k9LAw+584AE HCaw== X-Received: by 10.112.218.39 with SMTP id pd7mr3058490lbc.13.1369194229288; Tue, 21 May 2013 20:43:49 -0700 (PDT) Received: from [192.168.1.2] ([89.169.163.3]) by mx.google.com with ESMTPSA id c5sm2160655lbe.1.2013.05.21.20.43.48 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 21 May 2013 20:43:48 -0700 (PDT) Message-ID: <519C3EE7.1000800@freebsd.org> Date: Wed, 22 May 2013 07:43:35 +0400 From: Andrey Chernov User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130509 Thunderbird/17.0.6 MIME-Version: 1.0 To: Ed Schouten Subject: Re: svn commit: r250883 - in head: include include/xlocale lib/libc/locale sys/sys tools/regression/lib/libc/locale References: <201305211959.r4LJxbLx034714@svn.freebsd.org> <20130521220003.GB58299@stack.nl> In-Reply-To: OpenPGP: id=964474DD Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Gm-Message-State: ALoCoQkiK89XNozWxWGNRf0TbR4nKHx8vXKrd8/Gu4Jh8sgaSm+GEB9uPKYS1a+hBG5zNrWqm6dS Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org, Jilles Tjoelker X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 May 2013 03:43:56 -0000 On 22.05.2013 2:20, Ed Schouten wrote: > 2013/5/22 Jilles Tjoelker : >> Our wchar_t is only ISO 10646 for UTF-8 and possibly US-ASCII and >> ISO8859-1 (subset) locales. > > Oh, the horror! I thought on FreeBSD, we used the LC_CTYPE files to do > a mapping to ISO 10646. Unfortunately, it seems to be the case that > these files are only used to do mappings to > uppercase/lowercase/runetype. Bummer. > > I'll see what I can do to fix this. I'll likely implement something > like you suggested, that we return EILSEQ if the locale is not ASCII, > ISO8859-1 or UTF-8. Yes, non UTF-8 and its subsets locales are not encoded in ISO 10646 internally but have their own internal encoding. Returning EILSEQ will broke them all at once, so I see no point to add new functions such way, because GNU configure will sense them, and then they doesn't work. Proper way is ether to not add them or use lib/libc/iconv for them (adding a lot of missing locales into lib/libiconv_modules). -- http://ache.vniz.net/ bitcoin:13fGiNutKNHcVSsgtGQ7bQ5kgUKgEQHn7N