[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: chinese files names problem with os X

From: Jim Correia <jim.correia_at_pobox.com>
Date: 2004-03-30 02:51:23 CEST

On Mar 26, 2004, at 8:41 PM, Victor Maurice Faubert wrote:

>> Mac OS X uses UTF-8 encoding for filenames in the BSD APIs. You
>> should set your locale to UTF-8. (I'm using en_US.UTF-8 - you should
>> use an appropriate variant...)
>
> How does one do this from the command line? I'm getting the same
> problem
> with French file names containing é or the bullet character. I'd
> happily use
> en_US.UTF-8, but I don't know how to specify it. "apropos locale"
> didn't seem
> to turn up any way to override this and using Terminal's Window
> Settings to
> change the encoding to UTF-8 didn't seem to help either, judging by an
> ls
> display. What's the magic incantation?

If you are using a bash-like shell

export LC_ALL=en_US.UTF-8

And you'll probably want to add that to your ~/.bashrc file.

If you are using a different shell, adjust the syntax to suit.

You may wish to read about the local env vars to see if it is
appropriate for you to set LC_ALL or one of the "lesser" ones based on
your needs.

Jim

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Mar 30 02:51:51 2004

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.