From owner-freebsd-stable@FreeBSD.ORG Thu May 24 01:45:51 2007 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id ECB1016A400 for ; Thu, 24 May 2007 01:45:51 +0000 (UTC) (envelope-from kayve@sfsu.edu) Received: from iron1.sfsu.edu (iron1.sfsu.edu [130.212.10.35]) by mx1.freebsd.org (Postfix) with ESMTP id D8A3D13C46C for ; Thu, 24 May 2007 01:45:51 +0000 (UTC) (envelope-from kayve@sfsu.edu) Received: from smtp01.sfsu.edu ([130.212.10.100]) by iron1.sfsu.edu with ESMTP; 23 May 2007 18:45:51 -0700 X-onepass: IPPSC X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ao8CADSLVEaC1Apk/2dsb2JhbAA Received: from libra.sfsu.edu ([130.212.10.238]) by mail05a.sfsu.edu (Lotus Domino Release 7.0) with ESMTP id 2007052318454931-842 ; Wed, 23 May 2007 18:45:49 -0700 Date: Wed, 23 May 2007 18:45:49 -0700 (PDT) From: KAYVEN RIESE To: Artem Kuchin In-Reply-To: <009601c79d81$4e791a90$05000100@Artem> Message-ID: References: <009601c79d81$4e791a90$05000100@Artem> MIME-Version: 1.0 X-MIMETrack: Itemize by SMTP Server on MAIL05a/SERVERS/SFSU(Release 7.0|August 18, 2005) at 05/23/2007 18:45:49, Serialize by Router on SMTP01/SERVERS/SFSU(Release 7.0.2FP1HF155 | March 20, 2007) at 05/23/2007 18:45:50, Serialize complete at 05/23/2007 18:45:50 Content-Type: MULTIPART/MIXED; BOUNDARY="-559023410-1483920592-1179971149=:11128" Cc: freeBSD bugs mailing list , KAYVEN RIESE Subject: Re: Broken locale after upgrade to 6-STABEL from 5-STABLE X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 May 2007 01:45:52 -0000 This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. ---559023410-1483920592-1179971149=:11128 Content-Transfer-Encoding: QUOTED-PRINTABLE Content-Type: TEXT/PLAIN; charset=koi8-r; format=flowed On Thu, 24 May 2007, Artem Kuchin wrote: > /lib/libc.so.5 > > I chflaged it, deleted it and made a link to > libc.so.6 this guy sounds familiar. i am really hosed right now, i can't run a browser simultaneously, maybe i am being really stupid, but what do you mean when you say you "chflaged" it? an explicit unix command line dingy is the sort of thing that makes me happy. > > After that setlocale in perl worked fine. > > However, on another server, where setlocale worked > and works fine this libc.so.5 also present and causes > no problems. > > What i don't understand, is how the appropriate 'so' > is selected? How freebsd known which so to load > this > libc.so.5 > or this > libc.so.6 > ? > > where it is specified? > > Another question, is why setlocale in C > says that locale is set fine. > > A simple proggie: > > #include > #include > #include > > main(){ > > char *b=3Dsetlocale(LC_ALL, "ru_RU.CP1251"); > if (!b){ > printf("FAILED! %d\n",errno); > } > else { > printf("OK: %s %d\n",b,errno); > printf("LOCALE %s\n",setlocale(LC_CTYPE,NULL)); > printf("1: TO UPPER %c TO LOWER %c\n",toupper('=D1'),tolower('=F1')= ); > printf("1-0: TO UPPER %c TO LOWER %c\n",toupper('=F1'),tolower('=D1= ')); > printf("2: TO UPPER %c TO LOWER %c\n",toupper('r'),tolower('R')); > } > } > > Does not work even when locales work on perl (toupper does not > return an upper letter for russia, but works with latin r, same > with tolower). > > Am i missing something? > > > > > -- > Regards, > Artem=20 > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" > *----------------------------------------------------------* Kayven Riese, BSCS, MS (Physiology and Biophysics) (415) 902 5513 cellular http://kayve.net Webmaster http://ChessYoga.org *----------------------------------------------------------* ---559023410-1483920592-1179971149=:11128--