Return-Path: Delivered-To: apmail-incubator-stdcxx-dev-archive@www.apache.org Received: (qmail 5473 invoked from network); 12 Apr 2007 17:15:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Apr 2007 17:15:10 -0000 Received: (qmail 86278 invoked by uid 500); 12 Apr 2007 17:15:16 -0000 Delivered-To: apmail-incubator-stdcxx-dev-archive@incubator.apache.org Received: (qmail 86262 invoked by uid 500); 12 Apr 2007 17:15:16 -0000 Mailing-List: contact stdcxx-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: stdcxx-dev@incubator.apache.org Delivered-To: mailing list stdcxx-dev@incubator.apache.org Received: (qmail 86251 invoked by uid 99); 12 Apr 2007 17:15:16 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Apr 2007 10:15:16 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [208.30.140.160] (HELO moroha.quovadx.com) (208.30.140.160) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Apr 2007 10:15:07 -0700 Received: from qxvcexch01.ad.quovadx.com ([192.168.170.59]) by moroha.quovadx.com (8.13.6/8.13.6) with ESMTP id l3CHE2dx002157 for ; Thu, 12 Apr 2007 17:14:02 GMT Received: from [10.70.3.113] ([10.70.3.113]) by qxvcexch01.ad.quovadx.com with Microsoft SMTPSVC(6.0.3790.1830); Thu, 12 Apr 2007 11:14:51 -0600 Message-ID: <461E691B.4060300@roguewave.com> Date: Thu, 12 Apr 2007 11:15:07 -0600 From: Martin Sebor Organization: Rogue Wave Software User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.2) Gecko/20070221 SeaMonkey/1.1.1 MIME-Version: 1.0 To: stdcxx-dev@incubator.apache.org Subject: Re: Portability of built Standard Library References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 12 Apr 2007 17:14:51.0126 (UTC) FILETIME=[149AB160:01C77D26] X-Virus-Checked: Checked by ClamAV on apache.org Patrick Happel wrote: > Hi all, > I had a question come up that I wasn't sure about regarding the > released versions of the library, and I'm hoping someone can answer it: > Since the Standard Library doesn't build if an acceptable locale isn't > installed, can a built version of the library (ie a .lib, .dll, or .a > file) be used on a machine with different locales than the machine it > was built on? All you should need to build the old library on a platform with no locales is the new config test. In fact, you don't even need the test itself, you just need its output for the platform the customer is using. You can compile and run the test on the same platform that does have locales installed and get its output that way. You can also see the output of the latest test on the nightly test results page here: http://people.apache.org/~sebor/stdcxx/results/ Scroll down to the row for the customer's platform (build type shouldn't matter), and follow the (H) link to the config header. For example, the config header for Solaris 10 obtained with Sun C++ 5.8 is here: http://people.apache.org/~sebor/stdcxx/results/solaris-10-sparcv9-sunpro-64b-5.8-15s-cfg-h.gz.txt Scroll down to the the line with _RWSTD_NO_LOCALE_NAME_FMAT on it. What follows (all the way to the line containing the _RWSTD_NO_CONDENSED_NAME macro) is the rest of the output of the test. > I'd also like to verify that the newest version of the > library does not require any locales to be installed in order to build. Correct. I don't believe it does. It builds on Cygwin where I don't think there is any libc support for localization at all (unless that's changed in recent versions of Cygwin). I also just successfully built it on Solaris after replacing the libc setlocale() function with a dummy one in the test that always fails (see line 29 of the latest test). When the function fails (i.e., when the test fails to find any named locales), it falls back on the formats hardcoded for each platform. You can view the latest sources for the test here: http://svn.apache.org/repos/asf/incubator/stdcxx/trunk/etc/config/src/LOCALE_NAME_FMAT.cpp The previous version (from stdcxx 4.1.3) is here: http://svn.apache.org/repos/asf/incubator/stdcxx/branches/4.1.3/etc/config/src/LOCALE_NAME_FMAT.cpp Martin > > Thanks, > -Patrick Happel > > Rogue Wave Software, > A QUOVADX(tm) division > Technical Support > Phone: 303-545-3205 -- 1-800-404-4767 > E-mail: support@roguewave.com > Web: http://www.roguewave.com/support > >