From owner-freebsd-questions@FreeBSD.ORG Fri Apr 22 13:36:17 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 61B6516A4CE for ; Fri, 22 Apr 2005 13:36:17 +0000 (GMT) Received: from phoenix.gargantuan.com (srv01.lak.lwxdatacom.net [24.73.171.238]) by mx1.FreeBSD.org (Postfix) with ESMTP id D55EF43D46 for ; Fri, 22 Apr 2005 13:36:16 +0000 (GMT) (envelope-from michael@gargantuan.com) Received: from localhost (localhost.gargantuan.com [127.0.0.1]) by spamassassin-injector (Postfix) with SMTP id 83776453; Fri, 22 Apr 2005 09:36:15 -0400 (EDT) Received: by phoenix.gargantuan.com (Postfix, from userid 1001) id 9EE641C8; Fri, 22 Apr 2005 09:36:00 -0400 (EDT) Date: Fri, 22 Apr 2005 09:36:00 -0400 From: "Michael W. Oliver" To: Joel Message-ID: <20050422133600.GE86130@gargantuan.com> Mail-Followup-To: Joel , questions@freebsd.org References: <20050421231414.GC86130@gargantuan.com> <20050422163355.1998.REES@ddcom.co.jp> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="84ND8YJRMFlzkrP4" Content-Disposition: inline In-Reply-To: <20050422163355.1998.REES@ddcom.co.jp> X-WWW-URL: http://michael.gargantuan.com X-GPG-PGP-Public-Key: http://michael.gargantuan.com/gnupg/pubkey.asc X-GPG-PGP-Fingerprint: 2694 0179 AE3F BFAE 0916 0BF5 B16B FBAB C5FA A3C9 X-Home-Phone: +1-863-816-8091 X-Mobile-Phone: +1-863-738-2334 X-Mailing-Address0: 8008 Apache Lane X-Mailing-Address1: Lakeland, FL X-Mailing-Address2: 33810-2172 X-Mailing-Address3: United States of America X-Guide-Questions: http://www.catb.org/~esr/faqs/smart-questions.html X-Guide-Netiquette: http://www.ietf.org/rfc/rfc1855.txt User-Agent: Mutt/1.5.9i X-Spam-DCC: : phoenix.gargantuan.com 1074; Body=1 Fuz1=1 Fuz2=1 X-Spam-Flag: NO X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on phoenix.gargantuan.com X-Spam-Level: X-Spam-Status: No, score=-106.1 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00, USER_IN_WHITELIST autolearn=ham version=3.0.2 X-Spam-Pyzor: Reported 0 times. cc: questions@freebsd.org Subject: Re: special characters and how they are represented X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Apr 2005 13:36:17 -0000 --84ND8YJRMFlzkrP4 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2005-04-22T18:16:24+0900, Joel wrote: >> 1) ls --> this shows "M?tley_Cr?e" as directory name >> 2) ls | more --> this looks right, with umlaut over o and u >> 3) ls M --> this shows "M\366tley_Cr\374e" (backslash366 & >> backslash374, respectively), using csh as my shell w/set complete and >> set autolist >> my question is... why the differences?=20 >=20 > Well, I could guess that the CD file system uses one encoding and your > OS uses another and each application makes different assumptions? well, the CD just contains the music, not any textual information. i was using ripit.pl to do the ripping/encoding, so it created the dir automatically with information retrieved from CDDB. >> is there a way to force >> consistent behavior across all three scenarios? >=20 > Probably take a little work in your LOCALEs, may not be completely > successful. yes, you pointed me in the right direction. my earlier google searches were missing that word -- locale. with an improved search, i found the following handbook page: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/using-localizatio= n.html and it had all of the answers. in short, i changed my ~/.login_conf to read: me:\ :charset=3Diso-8859-1:\ :lang=3Den_US.ISO8859-1: and i now have consistent behavior and character representation. thanks much for the hint! --=20 Mike Oliver [see complete headers for contact information] --84ND8YJRMFlzkrP4 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQFCaP3AsWv7q8X6o8kRAtUiAJsEbNz6t6DI1T0NCNpKKwQFKPPKZgCeNkHo MW++2sxAimU2BFMK3YFhUbM= =FmcU -----END PGP SIGNATURE----- --84ND8YJRMFlzkrP4--