[TxMt] Word Count

Allan Odgaard throw-away-2 at macromates.com
Wed May 28 19:34:11 UTC 2008

On 28 May 2008, at 20:32, Hans-Jörg Bibiko wrote:

> [...]
> If I write a tmcommand with:
> - a shell script:
> env | sort
> I see LC_CTYPE
> - a Ruby/Perl script:
> #!/usr/bin/ruby
> print `env|sort`
> I do not see LC_CTYPE
> Can you confirm this behaviour? Or am I wrong?

I actually thought I set LC_CTYPE in code, but turns out only in  

It worked for me because I also set LC_CTYPE in ~/MacOSX/ 

So yes, for this to work, the ruby script will have to set the  
encoding variable.

More information about the textmate mailing list