[TxMt] Word Count
Hans-Jörg Bibiko
bibiko at eva.mpg.de
Wed May 28 18:32:51 UTC 2008
On 28.05.2008, at 20:20, Hans-Jörg Bibiko wrote:
> On 28.05.2008, at 19:59, Allan Odgaard wrote:
>> On 28 May 2008, at 19:49, Hans-Jörg Bibiko wrote:
>>
>>> [...]
>>> Oops. Of course, one has to set LC_ALL in the Ruby script.
>>
>> TextMate sets LC_CTYPE for the programs it executes.
> Yes, I know, but I do not know if Ruby by itself starts a system
> command via `` whether that command inherits the locale settings?
>> So on a normal system it should not be necessary to set this up in
>> the script. However, other locale variables take precedence over
>> LC_CTYPE, so most likely you have anther one set (to something
>> other than UTF-8).
> Actually no.
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?
--Hans
More information about the textmate
mailing list