From owner-cvs-all Sat Aug 3 2:10: 7 2002 Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2F37837B478; Sat, 3 Aug 2002 02:09:40 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id B0B4044369; Sat, 3 Aug 2002 02:04:47 -0700 (PDT) (envelope-from ache@FreeBSD.org) Received: from freefall.freebsd.org (ache@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g7394iJU020457; Sat, 3 Aug 2002 02:04:44 -0700 (PDT) (envelope-from ache@freefall.freebsd.org) Received: (from ache@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g7394irV020456; Sat, 3 Aug 2002 02:04:44 -0700 (PDT) Message-Id: <200208030904.g7394irV020456@freefall.freebsd.org> From: "Andrey A. Chernov" Date: Sat, 3 Aug 2002 02:04:44 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/lib/libc/locale setlocale.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG ache 2002/08/03 02:04:44 PDT Modified files: lib/libc/locale setlocale.c Log: 1) Use errno to indicate faulure reason. 2) Move incomplete check for / in locale name from env section to loadlocale(), add check for "." and ".." too. It allows to check any argument, not env only. 3) Redesing LOAD_CATEGORY macro to eliminate code duplication. 4) Try harder in fallback code: if old locale can't be restored, load "C" locale 5) White space formatting, long lines, etc. Revision Changes Path 1.37 +91 -46 src/lib/libc/locale/setlocale.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message