Fix strftime usage on Win32 when trying to fetch the locale-aware parts of a time string so it properly handles different encodings.
Fix strftime usage on Win32 when trying to fetch the locale-aware
parts of a time string so it properly handles different encodings.

Original patch by Hiroshi Saito, heavily reworked by me and
ITAGAKI Takahiro.

arcivanov/postgres-xl,lisakowen/gpdb,tpostgres-projects/tPostgres,Postgres-XL/Postgres-XL,yazun/postgres-xl,Chibin/gpdb,oberstet/postgres-xl,jmcatamney/gpdb,Chibin/gpdb,adam8157/gpdb,jmcatamney/gpdb,adam8157/gpdb,50wu/gpdb,arcivanov/postgres-xl,yuanzhao/gpdb,pavanvd/postgres-xl,snaga/postgres-xl,ashwinstar/gpdb,pavanvd/postgres-xl,greenplum-db/gpdb,edespino/gpdb,50wu/gpdb,jmcatamney/gpdb,50wu/gpdb,ovr/postgres-xl,postmind-net/postgres-xl,yuanzhao/gpdb,xinzweb/gpdb,jmcatamney/gpdb,snaga/postgres-xl,tpostgres-projects/tPostgres,xinzweb/gpdb,greenplum-db/gpdb,yazun/postgres-xl,techdragon/Postgres-XL,greenplum-db/gpdb,lisakowen/gpdb,jmcatamney/gpdb,xinzweb/gpdb,greenplum-db/gpdb,ashwinstar/gpdb,50wu/gpdb,ovr/postgres-xl,ashwinstar/gpdb,edespino/gpdb,Postgres-XL/Postgres-XL,oberstet/postgres-xl,adam8157/gpdb,ashwinstar/gpdb,ashwinstar/gpdb,yazun/postgres-xl,zeroae/postgres-xl,yuanzhao/gpdb,Postgres-XL/Postgres-XL,Chibin/gpdb,yuanzhao/gpdb,edespino/gpdb,greenplum-db/gpdb,ovr/postgres-xl,edespino/gpdb,postmind-net/postgres-xl,pavanvd/postgres-xl,Chibin/gpdb,jmcatamney/gpdb,Chibin/gpdb,yuanzhao/gpdb,xinzweb/gpdb,ovr/postgres-xl,zeroae/postgres-xl,yuanzhao/gpdb,greenplum-db/gpdb,arcivanov/postgres-xl,zeroae/postgres-xl,edespino/gpdb,lisakowen/gpdb,adam8157/gpdb,yuanzhao/gpdb,kmjungersen/PostgresXL,postmind-net/postgres-xl,Chibin/gpdb,edespino/gpdb,arcivanov/postgres-xl,greenplum-db/gpdb,kmjungersen/PostgresXL,adam8157/gpdb,oberstet/postgres-xl,lisakowen/gpdb,adam8157/gpdb,Postgres-XL/Postgres-XL,kmjungersen/PostgresXL,ashwinstar/gpdb,lisakowen/gpdb,jmcatamney/gpdb,yazun/postgres-xl,50wu/gpdb,xinzweb/gpdb,xinzweb/gpdb,lisakowen/gpdb,jmcatamney/gpdb,techdragon/Postgres-XL,Chibin/gpdb,Chibin/gpdb,50wu/gpdb,adam8157/gpdb,edespino/gpdb,pavanvd/postgres-xl,Chibin/gpdb,ashwinstar/gpdb,tpostgres-projects/tPostgres,postmind-net/postgres-xl,greenplum-db/gpdb,Postgres-XL/Postgres-XL,pavanvd/postgres-xl,arcivanov/postgres-xl,Chibin/gpdb,yuanzhao/gpdb,tpostgres-projects/tPostgres,postmind-net/postgres-xl,arcivanov/postgres-xl,xinzweb/gpdb,edespino/gpdb,snaga/postgres-xl,techdragon/Postgres-XL,techdragon/Postgres-XL,snaga/postgres-xl,snaga/postgres-xl,50wu/gpdb,edespino/gpdb,adam8157/gpdb,yazun/postgres-xl,zeroae/postgres-xl,ashwinstar/gpdb,lisakowen/gpdb,oberstet/postgres-xl,oberstet/postgres-xl,tpostgres-projects/tPostgres,50wu/gpdb,yuanzhao/gpdb,techdragon/Postgres-XL,kmjungersen/PostgresXL,kmjungersen/PostgresXL,ovr/postgres-xl,edespino/gpdb,yuanzhao/gpdb,xinzweb/gpdb,zeroae/postgres-xl,lisakowen/gpdb