Revert (too late in beta):
Revert (too late in beta):

Fix to_char() locale handling to honor LC_TIME, not LC_MESSAGES.

Euler Taveira de Oliveira

xuegang/gpdb,edespino/gpdb,edespino/gpdb,rvs/gpdb,Chibin/gpdb,zeroae/postgres-xl,janebeckman/gpdb,xinzweb/gpdb,chrishajas/gpdb,chrishajas/gpdb,rvs/gpdb,ahachete/gpdb,yazun/postgres-xl,Chibin/gpdb,randomtask1155/gpdb,yuanzhao/gpdb,oberstet/postgres-xl,techdragon/Postgres-XL,royc1/gpdb,pavanvd/postgres-xl,chrishajas/gpdb,jmcatamney/gpdb,kaknikhil/gpdb,randomtask1155/gpdb,Quikling/gpdb,lpetrov-pivotal/gpdb,arcivanov/postgres-xl,pavanvd/postgres-xl,xuegang/gpdb,lintzc/gpdb,kmjungersen/PostgresXL,ahachete/gpdb,postmind-net/postgres-xl,yuanzhao/gpdb,Chibin/gpdb,greenplum-db/gpdb,ovr/postgres-xl,kaknikhil/gpdb,ashwinstar/gpdb,0x0FFF/gpdb,lpetrov-pivotal/gpdb,kaknikhil/gpdb,oberstet/postgres-xl,foyzur/gpdb,ashwinstar/gpdb,rubikloud/gpdb,ovr/postgres-xl,50wu/gpdb,yazun/postgres-xl,lintzc/gpdb,50wu/gpdb,rvs/gpdb,tpostgres-projects/tPostgres,Chibin/gpdb,edespino/gpdb,chrishajas/gpdb,yazun/postgres-xl,lpetrov-pivotal/gpdb,zaksoup/gpdb,xinzweb/gpdb,yuanzhao/gpdb,CraigHarris/gpdb,ashwinstar/gpdb,yazun/postgres-xl,ashwinstar/gpdb,rvs/gpdb,cjcjameson/gpdb,cjcjameson/gpdb,cjcjameson/gpdb,0x0FFF/gpdb,50wu/gpdb,CraigHarris/gpdb,Chibin/gpdb,50wu/gpdb,ashwinstar/gpdb,tangp3/gpdb,xinzweb/gpdb,zaksoup/gpdb,kmjungersen/PostgresXL,yuanzhao/gpdb,zeroae/postgres-xl,greenplum-db/gpdb,foyzur/gpdb,kaknikhil/gpdb,atris/gpdb,rubikloud/gpdb,arcivanov/postgres-xl,Postgres-XL/Postgres-XL,atris/gpdb,edespino/gpdb,zaksoup/gpdb,CraigHarris/gpdb,royc1/gpdb,chrishajas/gpdb,xuegang/gpdb,zeroae/postgres-xl,yuanzhao/gpdb,cjcjameson/gpdb,kaknikhil/gpdb,randomtask1155/gpdb,janebeckman/gpdb,foyzur/gpdb,lintzc/gpdb,zaksoup/gpdb,atris/gpdb,zaksoup/gpdb,kaknikhil/gpdb,50wu/gpdb,janebeckman/gpdb,xuegang/gpdb,yuanzhao/gpdb,techdragon/Postgres-XL,royc1/gpdb,cjcjameson/gpdb,snaga/postgres-xl,adam8157/gpdb,0x0FFF/gpdb,snaga/postgres-xl,Quikling/gpdb,zaksoup/gpdb,janebeckman/gpdb,kmjungersen/PostgresXL,tangp3/gpdb,kmjungersen/PostgresXL,0x0FFF/gpdb,techdragon/Postgres-XL,yazun/postgres-xl,CraigHarris/gpdb,tangp3/gpdb,xinzweb/gpdb,atris/gpdb,tpostgres-projects/tPostgres,lpetrov-pivotal/gpdb,greenplum-db/gpdb,snaga/postgres-xl,lisakowen/gpdb,arcivanov/postgres-xl,royc1/gpdb,0x0FFF/gpdb,randomtask1155/gpdb,rubikloud/gpdb,cjcjameson/gpdb,lpetrov-pivotal/gpdb,rvs/gpdb,kaknikhil/gpdb,ahachete/gpdb,CraigHarris/gpdb,yuanzhao/gpdb,adam8157/gpdb,foyzur/gpdb,janebeckman/gpdb,lisakowen/gpdb,adam8157/gpdb,cjcjameson/gpdb,50wu/gpdb,jmcatamney/gpdb,pavanvd/postgres-xl,0x0FFF/gpdb,zeroae/postgres-xl,Quikling/gpdb,foyzur/gpdb,randomtask1155/gpdb,Quikling/gpdb,edespino/gpdb,oberstet/postgres-xl,zaksoup/gpdb,pavanvd/postgres-xl,Quikling/gpdb,ashwinstar/gpdb,xuegang/gpdb,lintzc/gpdb,arcivanov/postgres-xl,kaknikhil/gpdb,jmcatamney/gpdb,xuegang/gpdb,Chibin/gpdb,rubikloud/gpdb,randomtask1155/gpdb,zeroae/postgres-xl,tangp3/gpdb,Quikling/gpdb,edespino/gpdb,edespino/gpdb,Chibin/gpdb,jmcatamney/gpdb,50wu/gpdb,postmind-net/postgres-xl,janebeckman/gpdb,greenplum-db/gpdb,ahachete/gpdb,lpetrov-pivotal/gpdb,Chibin/gpdb,ahachete/gpdb,ahachete/gpdb,adam8157/gpdb,tpostgres-projects/tPostgres,Quikling/gpdb,CraigHarris/gpdb,Quikling/gpdb,postmind-net/postgres-xl,oberstet/postgres-xl,jmcatamney/gpdb,xuegang/gpdb,jmcatamney/gpdb,janebeckman/gpdb,foyzur/gpdb,yuanzhao/gpdb,ovr/postgres-xl,royc1/gpdb,randomtask1155/gpdb,CraigHarris/gpdb,lisakowen/gpdb,Postgres-XL/Postgres-XL,Postgres-XL/Postgres-XL,foyzur/gpdb,rubikloud/gpdb,greenplum-db/gpdb,adam8157/gpdb,techdragon/Postgres-XL,0x0FFF/gpdb,royc1/gpdb,lisakowen/gpdb,adam8157/gpdb,rvs/gpdb,chrishajas/gpdb,rvs/gpdb,50wu/gpdb,xinzweb/gpdb,tangp3/gpdb,yuanzhao/gpdb,rubikloud/gpdb,ovr/postgres-xl,ashwinstar/gpdb,kaknikhil/gpdb,lintzc/gpdb,tangp3/gpdb,Postgres-XL/Postgres-XL,randomtask1155/gpdb,snaga/postgres-xl,postmind-net/postgres-xl,atris/gpdb,royc1/gpdb,atris/gpdb,Quikling/gpdb,xuegang/gpdb,cjcjameson/gpdb,ovr/postgres-xl,kaknikhil/gpdb,janebeckman/gpdb,lintzc/gpdb,greenplum-db/gpdb,kmjungersen/PostgresXL,rubikloud/gpdb,lpetrov-pivotal/gpdb,xinzweb/gpdb,cjcjameson/gpdb,lisakowen/gpdb,lpetrov-pivotal/gpdb,lintzc/gpdb,tangp3/gpdb,adam8157/gpdb,tangp3/gpdb,edespino/gpdb,yuanzhao/gpdb,foyzur/gpdb,tpostgres-projects/tPostgres,chrishajas/gpdb,greenplum-db/gpdb,Chibin/gpdb,CraigHarris/gpdb,rvs/gpdb,pavanvd/postgres-xl,jmcatamney/gpdb,rvs/gpdb,lisakowen/gpdb,xuegang/gpdb,ahachete/gpdb,atris/gpdb,edespino/gpdb,techdragon/Postgres-XL,atris/gpdb,royc1/gpdb,janebeckman/gpdb,lisakowen/gpdb,lintzc/gpdb,rubikloud/gpdb,postmind-net/postgres-xl,jmcatamney/gpdb,adam8157/gpdb,ahachete/gpdb,rvs/gpdb,lisakowen/gpdb,tpostgres-projects/tPostgres,arcivanov/postgres-xl,greenplum-db/gpdb,janebeckman/gpdb,Postgres-XL/Postgres-XL,arcivanov/postgres-xl,lintzc/gpdb,xinzweb/gpdb,Quikling/gpdb,0x0FFF/gpdb,Chibin/gpdb,edespino/gpdb,snaga/postgres-xl,cjcjameson/gpdb,CraigHarris/gpdb,xinzweb/gpdb,oberstet/postgres-xl,zaksoup/gpdb,ashwinstar/gpdb,chrishajas/gpdb