From owner-freebsd-bluetooth@FreeBSD.ORG Wed Dec 15 23:33:13 2004 Return-Path: Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 94CF416A4CE; Wed, 15 Dec 2004 23:33:13 +0000 (GMT) Received: from mailgate1b.savvis.net (mailgate1b.savvis.net [216.91.182.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id 29A9243D55; Wed, 15 Dec 2004 23:33:13 +0000 (GMT) (envelope-from Maksim.Yevmenkin@savvis.net) Received: from out001.email.savvis.net (out001.apptix.savvis.net [216.91.32.44])iBFNWnUO009979; Wed, 15 Dec 2004 17:32:49 -0600 Received: from s228130hz1ew03.apptix-01.savvis.net ([10.146.4.28]) by out001.email.savvis.net with Microsoft SMTPSVC(6.0.3790.211); Wed, 15 Dec 2004 17:32:46 -0600 Received: from [10.254.186.111] ([66.35.239.94]) by s228130hz1ew03.apptix-01.savvis.net with Microsoft SMTPSVC(6.0.3790.211); Wed, 15 Dec 2004 17:32:36 -0600 Message-ID: <41C0C992.2050605@savvis.net> Date: Wed, 15 Dec 2004 15:32:34 -0800 From: Maksim Yevmenkin User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.2) Gecko/20040822 X-Accept-Language: en-us, en MIME-Version: 1.0 To: pav@FreeBSD.org References: <41B8D6D5.6090801@savvis.net> <1102634931.90683.9.camel@hood.oook.cz> <41B8E56C.6050409@savvis.net> <1102668370.34937.7.camel@pav.hide.vol.cz> <41B9E211.8050005@savvis.net> <1102709951.60420.9.camel@hood.oook.cz> <41BA2816.9000908@savvis.net> <1102721530.60420.15.camel@hood.oook.cz> <41BA5490.3000708@savvis.net> <1102731873.60420.21.camel@hood.oook.cz> In-Reply-To: <1102731873.60420.21.camel@hood.oook.cz> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 15 Dec 2004 23:32:37.0018 (UTC) FILETIME=[5C3B57A0:01C4E2FE] X-ECS-MailScanner: No virus is found cc: freebsd-bluetooth@FreeBSD.org Subject: Re: obexapp-1.4 X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Dec 2004 23:33:13 -0000 Pav, >>>> so i guess obexapp(1) should use encoding header from xml and >>>> translate values from xml into locale one is using >>> >>> Would be very nice, yes. >> >> how about setting you locate to utf-8, i.e. >> >> % LANG=.UTF-8 xterm (for Russian language >> LANG=ru_RU.UTF-8) >> >> and then in new xterm window try to run obexapp and do ls. does cd >> command work? do you see any difference in ls output? > > ls output is now readable, but I can't cd to directories. ok, thanks. just as i expected :( this whole thing is a train wreck :( OBEX_CharToUnicode and OBEX_UnicodeToChar just plain broken in openobex library :( the quick hack is to use something like iconv(3) to convert between current locate and unicode/utf-8. i do not like it very much, because its another port to install, but i'm not sure there is a standard freebsd-way to do the same thing. also, it seems, libbsdxml(3) always feeds utf-8 characters to all callbacks. it worked before only because no one tried obexapp(1) on "localized" phone :( btw, what locale are you using? max