Mac OS X Mavericks & the git command line

Note: This one may not affect you at all, if you own a MacBook with an English keyboard layout (and corresponding native language settings).

I however, bought a MacBook Pro with a German keyboard layout, and when using, for example ‘git pull’ on the command line I got this message:

$git pull
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_CTYPE = "UTF-8",
LANG = (unset)
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").

I added this to my .bash_profile:

export LC_CTYPE=en_US.UTF-8
export LC_ALL=en_US.UTF-8

Problem gone — thanks to the folks at spindicator.com who solved this problem already.

Note, that you may want to put in other values, depending on your language preferences.

Advertisement

TextMate, Ruby & String Interpolation

While preparing some code example for the Euruko 2007 I noticed a somewhat strange behaviour of TextMate while editing Ruby code. With the Ruby bundle being active, I expect CMD-R (“Apple-R”) to execute the Ruby code a hand. Which it does, unless the text cursor is inside a string interpolation expression.

An example: The first screen shot shows the example code, the cursor being positioned outside the #{ … }.

cursor_outside_srint_interpol.png

After CMD-R is hit, the output is the expected Ruby output as shown below.

outside_result.png

However, if the cursor is inside the string interpolation expression as below

cursor_inside_print_interpol.png

the result of hitting CMD-R doesn’t meet my expectation:


inside_result.png

I wonder why this happens. Apparently the behaviour has to do the the scope the cursor is in. A hint about how to avoid this is greatly appreciated.

One week with Leopard

The (at the time of this writing) new Mac OS X 10.5 Leopard is now installed on my MacBook for a week. Time enough to find the way through a few of the new features. Time Machine is of course an easy way for backing up the system.

Anyway, to me Spaces (virtual desktops) are a lot more important, since I missed this feature before. Of course there was VirtueDesktops (which even featured desktop switching via the motion sensors). However with Spaces you can assign an application to a certain Space.

Terminal now comes with tabs instead of many windows, which also helps keeping the desktops clean. And last but not least Mac OS X now also includes Subversion, Ruby and of course Ruby on Rails, including – but not limited to – gems and Rake.

Only issue: The background image of the login screen needs to be replaced. In case you also like another picture, LoginWindow Manager might be useful for you.