I'm applying the fix as shown here
It may be related to pull request #1
Applying the recipe before postgresql installation worked for me on a vanilla rackspace Ubuntu 12 instance. Otherwise the default recipe always fail as illustrated in the ServerFault page.
added the fix locale recipe
@liangzan - You still need to sign the CLA and mark the ticket as "Fix Provided." Please see http://wiki.opscode.com/display/chef/How+to+Contribute for more information.
If we're running Chef as root, why sudo?
Generally forcing locales runs into problems down the road for people who are in other locales. Is this really the correct thing to do?
We've decide to close this since we believe managing the locale is outside the scope of this cookbook. Related: #84