UTF support in R

When I tried to compile R on Solaris 10 today, I noticed that R complained that it doesn’t support UTF locales. A check in the documentation showed that UTF-8 should be supported. A closer reading revealed that the example UTF encoding key is in lower case without dash “-“. i.e. “en_GB.utf8“. The default encoding key on the machine I am working on is “en_US.UTF-8“. So, I am not sure if using different capitalization and dash could be a potential cause.

Anyway, here is how I worked around the issue:

export LANG=en_US
export LC_ALL=en_US
export LC_MESSAGES=en_US

Please do let me know if I should do anything differently during configure time. Thanks.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s