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: References: Date: Wed, 22 Jan 2014 21:16:56 +0400 Message-ID: Subject: Re: [geda-user] gnetlist localization patch From: Sergey Alyoshin To: geda-user AT delorie DOT com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Precedence: bulk On Wed, Jan 22, 2014 at 8:37 PM, Алексей Харьковский 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 int main(void) { printf("%s\n%s\n%s\n", setlocale(LC_ALL, NULL), /* current */ setlocale(LC_ALL, ""), /* default */ setlocale(LC_NUMERIC, "C")); }