delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2014/01/22/12:17:17

X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f
X-Recipient: geda-user AT delorie DOT com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20120113;
h=mime-version:in-reply-to:references:date:message-id:subject:from:to
:content-type:content-transfer-encoding;
bh=EguWSnD8buE5N6iEVQHfLTeJMVuwRh4p9jbtULBaGGk=;
b=RVPXzOPFs3QQ8yQIPZjzl/LvOvUPDbfeV+KcXWshKEN5jxPqcVgdGvULfZEAG0y7+P
iG9ttoo+VEV5mc3DhKE7HELeniNfKlJow6PMczBm+XEdCCaxU+HuWOAYsVlGL7uxfo3/
wDIdJQKDRmmOVFhPLkUEgaP5owxw7eZXJQn3n/vCxS5RK+2hYNpKpOSkyNPNuwhAdyU+
Pzt3ne3miPPctXUvLmabg/nZvrBEpPbHbBahC6VWzwEjBDY7ybBWJZAH5nyYwzmt5vPE
15rxzACimNrOpH4mX51Rvjw5YnnGxg57FBY0wEK924BnIqf46uyglccwsUAguYji0tdP
IDEQ==
MIME-Version: 1.0
X-Received: by 10.182.44.167 with SMTP id f7mr2248161obm.3.1390411016708; Wed,
22 Jan 2014 09:16:56 -0800 (PST)
In-Reply-To: <CAG4ve9K=uYwmRn6npM=jq-AGpZ1najFFyz19m0VdNsgnx4oQ0w@mail.gmail.com>
References: <CAG4ve9K=uYwmRn6npM=jq-AGpZ1najFFyz19m0VdNsgnx4oQ0w AT mail DOT gmail DOT com>
Date: Wed, 22 Jan 2014 21:16:56 +0400
Message-ID: <CAOxVtST0iYht7aJHAh+sF4HnFSgYFk6nZwWO=0tOhh5+FZ9XYw@mail.gmail.com>
Subject: Re: [geda-user] gnetlist localization patch
From: Sergey Alyoshin <alyoshin DOT s AT gmail DOT com>
To: geda-user AT delorie DOT com
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id s0MHH008030493
Reply-To: geda-user AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: geda-user AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Wed, Jan 22, 2014 at 8:37 PM, Алексей Харьковский
<svetonomer AT gmail DOT com> wrote:
> Hello all.
> At present, if in "component-library-search" path (declared in gafrc) exists
> files with NON ascii filenames (locale of filenames non en_US), the gnetlist
> program terminated with error:
>
>  leha AT work ~/local_repo/geda-gaf-git $ gnetlist
> ERROR: Failed to load RC file [/home/leha/.gEDA/gafrc]: ERROR: Invalid path
> ~S. "/home/leha/.gEDA/symbols/egor/sym/??293????1-1.sym"
>
> The attached simplest patch resolve this problem and makes possible using
> locale environment.

Is
+  setlocale(LC_ALL, "");
really necessary? It set default locale, which already should be
locale environment.

The following code output is

ru_RU.UTF-8 /* current */
ru_RU.UTF-8 /* default */
C

#include <locale.h>

int main(void)
{
    printf("%s\n%s\n%s\n",
        setlocale(LC_ALL, NULL),    /* current */
        setlocale(LC_ALL, ""),        /* default */
        setlocale(LC_NUMERIC, "C"));
}

- Raw text -


  webmaster     delorie software   privacy  
  Copyright 2019   by DJ Delorie     Updated Jul 2019