From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9226 invoked by alias); 30 Sep 2019 19:36:50 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 9212 invoked by uid 89); 30 Sep 2019 19:36:50 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.6 required=5.0 tests=AWL,BAYES_00,KAM_NUMSUBJECT,RCVD_IN_DNSWL_NONE autolearn=no version=3.3.1 spammy=UNIX, greybeard, GreyBeard, SPARC X-HELO: atl4mhob07.registeredsite.com Received: from atl4mhob07.registeredsite.com (HELO atl4mhob07.registeredsite.com) (209.17.115.45) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 30 Sep 2019 19:36:49 +0000 Received: from mailpod.hostingplatform.com (atl4qobmail02pod2.registeredsite.com [10.30.77.36]) by atl4mhob07.registeredsite.com (8.14.4/8.14.4) with ESMTP id x8UJakNj010491 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Mon, 30 Sep 2019 15:36:46 -0400 Received: (qmail 28445 invoked by uid 0); 30 Sep 2019 19:36:46 -0000 X-TCPREMOTEIP: 99.253.177.25 X-Authenticated-UID: dclarke@blastwave.org Received: from unknown (HELO ?172.16.35.3?) (dclarke@blastwave.org@99.253.177.25) by 0 with ESMTPA; 30 Sep 2019 19:36:46 -0000 Subject: Re: gcc on Sparc Solaris 8 To: gcc-help@gcc.gnu.org References: <2147124760.1726006.1569850372525.ref@mail.yahoo.com> <2147124760.1726006.1569850372525@mail.yahoo.com> From: Dennis Clarke Message-ID: Date: Mon, 30 Sep 2019 19:36:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:70.0) Gecko/20100101 Thunderbird/70.0 MIME-Version: 1.0 In-Reply-To: <2147124760.1726006.1569850372525@mail.yahoo.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2019-09/txt/msg00124.txt.bz2 On 9/30/19 9:32 AM, rolf perau via gcc-help wrote: > Hi Dennis, Put a locale on the command line or just allow POSIX : if ( argc > 1 ) { printf ("\nINFO : You suggest a locale of %s\n", argv[1]); buf = setlocale ( LC_ALL, argv[1] ); } else { buf = setlocale ( LC_ALL, "POSIX" ); } if ( buf == NULL ) { fprintf (stderr,"FAIL : setlocale fail\n"); return(EXIT_FAILURE); } -- Dennis Clarke RISC-V/SPARC/PPC/ARM/CISC UNIX and Linux spoken GreyBeard and suspenders optional https://twitch.tv/lastmiles