Re: Error on environment?

2009-01-14 Thread Joshua Root
Doctor Who wrote:
 On Wed, Jan 14, 2009 at 2:57 AM, Joshua Root j...@macports.org wrote:
 .
 There are a couple of relevant settings in Terminal.app's preferences
 which may be preferable to setting LANG manually.

 - Josh

 
 Such as?

Such as the International section in the Advanced tab.

- Josh
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: Error on environment?

2009-01-14 Thread Ryan Schmidt


On Jan 14, 2009, at 10:06, Joshua Root wrote:


Doctor Who wrote:


On Wed, Jan 14, 2009 at 2:57 AM, Joshua Root wrote:

There are a couple of relevant settings in Terminal.app's  
preferences

which may be preferable to setting LANG manually.


Such as?


Such as the International section in the Advanced tab.


You must be on Leopard. :)

On my Tiger system I have in Terminal's Inspector window a Display  
section where I can set the Character Set Encoding (and I have it set  
to Unicode UTF-8). I understood that I must then set the LANG  
variable to correspond to this encoding, so I set LANG to en_US.UTF-8.


Maybe Leopard does this automatically?

___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: Error on environment?

2009-01-14 Thread Joshua Root
Ryan Schmidt wrote:
 
 On Jan 14, 2009, at 10:06, Joshua Root wrote:
 
 Doctor Who wrote:

 On Wed, Jan 14, 2009 at 2:57 AM, Joshua Root wrote:

 There are a couple of relevant settings in Terminal.app's preferences
 which may be preferable to setting LANG manually.

 Such as?

 Such as the International section in the Advanced tab.
 
 You must be on Leopard. :)
 
 On my Tiger system I have in Terminal's Inspector window a Display
 section where I can set the Character Set Encoding (and I have it set to
 Unicode UTF-8). I understood that I must then set the LANG variable to
 correspond to this encoding, so I set LANG to en_US.UTF-8.
 
 Maybe Leopard does this automatically?

Yes, on Leopard there's a checkbox Set LANG environment variable on
startup which is checked by default.

- Josh
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: Error on environment?

2009-01-14 Thread Ryan Schmidt

On Jan 14, 2009, at 18:12, Joshua Root wrote:


Ryan Schmidt wrote:


On my Tiger system I have in Terminal's Inspector window a Display
section where I can set the Character Set Encoding (and I have it  
set to
Unicode UTF-8). I understood that I must then set the LANG  
variable to

correspond to this encoding, so I set LANG to en_US.UTF-8.

Maybe Leopard does this automatically?


Yes, on Leopard there's a checkbox Set LANG environment variable on
startup which is checked by default.


That's cool! Add that to the column of things I like about Leopard.

Firmly in the other column, though, is what they did to folders in  
the Dock.


___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: Error on environment?

2009-01-13 Thread Doctor Who
On Tue, Jan 13, 2009 at 1:06 AM, Ryan Schmidt ryandes...@macports.org wrote:

 On Jan 11, 2009, at 14:13, Doctor Who wrote:

 I installed the findutils and coreutils packages so that I could use
 locate on my Mac.

 FYI, locate works fine on my Mac without installing anything extra with
 MacPorts... I'm on Tiger, though I've probably enabled something somewhere
 along the way to get this to work.


 When I attempt to update the database using
 'updatedb', I get:

 /usr/bin/sort: string comparison failed: Illegal byte sequence
 /usr/bin/sort: Set LC_ALL='C' to work around the problem.
 /usr/bin/sort: The strings compared were
 `/APPLICATIONS/BURN.APP/CONTENTS/RESOURCES/JAPANESE.LPROJ/BURN
 Ã\230Ã\253Ã\225Â\232/TY/TASK_STYLE.CSS' and
 `/APPLICATIONS/BURN.APP/CONTENTS/RESOURCES/JAPANESE.LPROJ/CREDITS.HTML'.

 Hopefully someone can tell me how to fix this.

 Is your LANG environment variable set to anything? If so, what? I assume you
 need to set it to a reasonable value for your terminal. For example, I set
 LANG to en_US.UTF-8.


Thanks, where should this setting be?
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: Error on environment?

2009-01-13 Thread Ryan Schmidt

On Jan 13, 2009, at 08:50, Doctor Who wrote:


On Tue, Jan 13, 2009 at 1:06 AM, Ryan Schmidt wrote:


On Jan 11, 2009, at 14:13, Doctor Who wrote:


I installed the findutils and coreutils packages so that I could use
locate on my Mac.


FYI, locate works fine on my Mac without installing anything extra  
with
MacPorts... I'm on Tiger, though I've probably enabled something  
somewhere

along the way to get this to work.



When I attempt to update the database using
'updatedb', I get:

/usr/bin/sort: string comparison failed: Illegal byte sequence
/usr/bin/sort: Set LC_ALL='C' to work around the problem.
/usr/bin/sort: The strings compared were
`/APPLICATIONS/BURN.APP/CONTENTS/RESOURCES/JAPANESE.LPROJ/BURN
Ã\230Ã\253Ã\225Â\232/TY/TASK_STYLE.CSS' and
`/APPLICATIONS/BURN.APP/CONTENTS/RESOURCES/JAPANESE.LPROJ/ 
CREDITS.HTML'.


Hopefully someone can tell me how to fix this.


Is your LANG environment variable set to anything? If so, what? I  
assume you
need to set it to a reasonable value for your terminal. For  
example, I set

LANG to en_US.UTF-8.


Thanks, where should this setting be?


Type export LANG=en_US.UTF-8. Then try updatedb again. If it works,  
you'll know that was it, and it would be a good idea to modify your  
shell startup file to include that line to set LANG for you. Your  
shell startup file might be ~/.profile or ~/.bash_profile or possibly  
others; I'm sure the Bash documentation has a complete list of all  
the files it checks at launch time.



___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: Error on environment?

2009-01-12 Thread Ryan Schmidt


On Jan 11, 2009, at 14:13, Doctor Who wrote:


I installed the findutils and coreutils packages so that I could use
locate on my Mac.


FYI, locate works fine on my Mac without installing anything extra  
with MacPorts... I'm on Tiger, though I've probably enabled something  
somewhere along the way to get this to work.




When I attempt to update the database using
'updatedb', I get:

/usr/bin/sort: string comparison failed: Illegal byte sequence
/usr/bin/sort: Set LC_ALL='C' to work around the problem.
/usr/bin/sort: The strings compared were
`/APPLICATIONS/BURN.APP/CONTENTS/RESOURCES/JAPANESE.LPROJ/BURN
Ã\230Ã\253Ã\225Â\232/TY/TASK_STYLE.CSS' and
`/APPLICATIONS/BURN.APP/CONTENTS/RESOURCES/JAPANESE.LPROJ/ 
CREDITS.HTML'.


Hopefully someone can tell me how to fix this.


Is your LANG environment variable set to anything? If so, what? I  
assume you need to set it to a reasonable value for your terminal.  
For example, I set LANG to en_US.UTF-8.




___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users