From owner-freebsd-i18n Fri Sep 20 14:41:38 2002 Delivered-To: freebsd-i18n@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AE51537B401; Fri, 20 Sep 2002 14:41:37 -0700 (PDT) Received: from nagual.pp.ru (pobrecita.freebsd.ru [194.87.13.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 59D7443E65; Fri, 20 Sep 2002 14:41:36 -0700 (PDT) (envelope-from ache@pobrecita.freebsd.ru) Received: from pobrecita.freebsd.ru (ache@localhost [127.0.0.1]) by nagual.pp.ru (8.12.5/8.12.5) with ESMTP id g8KLfWnd018285; Sat, 21 Sep 2002 01:41:34 +0400 (MSD) (envelope-from ache@pobrecita.freebsd.ru) Received: (from ache@localhost) by pobrecita.freebsd.ru (8.12.5/8.12.5/Submit) id g8KLfVWn018284; Sat, 21 Sep 2002 01:41:31 +0400 (MSD) (envelope-from ache) Date: Sat, 21 Sep 2002 01:41:30 +0400 From: "Andrey A. Chernov" To: Alexey Zelkin Cc: i18n@freebsd.org Subject: Re: setlocale() fallback behaviour Message-ID: <20020920214129.GA17859@nagual.pp.ru> References: <20020920230219.A88895@ark.cris.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020920230219.A88895@ark.cris.net> User-Agent: Mutt/1.5.1i Sender: owner-freebsd-i18n@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, Sep 20, 2002 at 23:02:19 +0300, Alexey Zelkin wrote: > > with call setlocale(LC_ALL, "") we'll get completely "C" defaulting > locale. According to POSIX test suite, LC_ALL must fail if ANY of sub-LC's is invalid. "Upon successful completion, setlocale ( ) shall return the string associated with the specified category for the new locale. Otherwise, setlocale ( ) shall return a null pointer and the program's locale is not ^^^^^^^^^^^^^^^^^^^^^^^^^^ changed." ^^^^^^^^^ -- Andrey A. Chernov http://ache.pp.ru/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-i18n" in the body of the message