Feature request
Set custom locale via VM Studio UI
Issue
Studio 2.6 will build Ubuntu 10.04 appliances with locale set to en_US. When installing a database package such as postgresql-8.4, the databases will default to same locale resulting in LATIN1 encoding. The desired encoding is UTF-8.
Workarounds
Post-appliance build:
The workaround after the appliance first boots (that we know of) is to change the locale (i.e to en_US.utf8) on the OS level, then purge and reinstall package postgresql-8.4. This way the databases will default to locale en_US.utf8 resulting in UTF-8 encoding.
Workaround for building new appliances:
Edit the Ubuntu 10.04 profile and templates so that when the appliance is built, it will be with en_US.utf8 locale.
/opt/vmware/etc/build/templates/ubuntu/10/post.xsl
+locale-gen en_US.UTF-8
+update-locale LANG=en_US.UTF-8
-export LANG=en_US
+export LANG=en_US.UTF-8
/opt/vmware/var/lib/build/profiles/<profile_name>.xml
- Change all mention of "en_US" to en_US.UTF-8