Fix assorted bogosities in cash_in() and cash_out().
Fix assorted bogosities in cash_in() and cash_out().

cash_out failed to handle multiple-byte thousands separators, as per bug
#6277 from Alexander Law.  In addition, cash_in didn't handle that either,
nor could it handle multiple-byte positive_sign.  Both routines failed to
support multiple-byte mon_decimal_point, which I did not think was worth
changing, but at least now they check for the possibility and fall back to
using '.' rather than emitting invalid output.  Also, make cash_in handle
trailing negative signs, which formerly it would reject.  Since cash_out
generates trailing negative signs whenever the locale tells it to, this
last omission represents a fail-to-reload-dumped-data bug.  IMO that
justifies patching this all the way back.

Chibin/gpdb,kaknikhil/gpdb,lintzc/gpdb,Chibin/gpdb,yuanzhao/gpdb,yuanzhao/gpdb,ashwinstar/gpdb,ashwinstar/gpdb,zaksoup/gpdb,chrishajas/gpdb,royc1/gpdb,ahachete/gpdb,cjcjameson/gpdb,ashwinstar/gpdb,greenplum-db/gpdb,janebeckman/gpdb,rvs/gpdb,jmcatamney/gpdb,lisakowen/gpdb,xinzweb/gpdb,kaknikhil/gpdb,xuegang/gpdb,greenplum-db/gpdb,50wu/gpdb,ahachete/gpdb,kaknikhil/gpdb,royc1/gpdb,rvs/gpdb,xuegang/gpdb,lintzc/gpdb,greenplum-db/gpdb,edespino/gpdb,lisakowen/gpdb,0x0FFF/gpdb,xinzweb/gpdb,chrishajas/gpdb,Quikling/gpdb,CraigHarris/gpdb,Chibin/gpdb,chrishajas/gpdb,jmcatamney/gpdb,cjcjameson/gpdb,xuegang/gpdb,50wu/gpdb,chrishajas/gpdb,Quikling/gpdb,kaknikhil/gpdb,lisakowen/gpdb,Chibin/gpdb,chrishajas/gpdb,jmcatamney/gpdb,Chibin/gpdb,Chibin/gpdb,jmcatamney/gpdb,ashwinstar/gpdb,yuanzhao/gpdb,kaknikhil/gpdb,Quikling/gpdb,zaksoup/gpdb,0x0FFF/gpdb,Quikling/gpdb,kaknikhil/gpdb,adam8157/gpdb,chrishajas/gpdb,cjcjameson/gpdb,xinzweb/gpdb,lintzc/gpdb,cjcjameson/gpdb,Quikling/gpdb,zaksoup/gpdb,yuanzhao/gpdb,Chibin/gpdb,0x0FFF/gpdb,edespino/gpdb,cjcjameson/gpdb,ahachete/gpdb,xinzweb/gpdb,Chibin/gpdb,edespino/gpdb,edespino/gpdb,xinzweb/gpdb,greenplum-db/gpdb,CraigHarris/gpdb,50wu/gpdb,edespino/gpdb,janebeckman/gpdb,lisakowen/gpdb,jmcatamney/gpdb,jmcatamney/gpdb,xuegang/gpdb,lintzc/gpdb,janebeckman/gpdb,lintzc/gpdb,adam8157/gpdb,janebeckman/gpdb,ashwinstar/gpdb,xinzweb/gpdb,Quikling/gpdb,royc1/gpdb,royc1/gpdb,ahachete/gpdb,yuanzhao/gpdb,cjcjameson/gpdb,0x0FFF/gpdb,ashwinstar/gpdb,Chibin/gpdb,adam8157/gpdb,50wu/gpdb,lintzc/gpdb,rvs/gpdb,adam8157/gpdb,xuegang/gpdb,0x0FFF/gpdb,CraigHarris/gpdb,greenplum-db/gpdb,janebeckman/gpdb,CraigHarris/gpdb,yuanzhao/gpdb,lintzc/gpdb,royc1/gpdb,lisakowen/gpdb,zaksoup/gpdb,xuegang/gpdb,zaksoup/gpdb,kaknikhil/gpdb,kaknikhil/gpdb,cjcjameson/gpdb,chrishajas/gpdb,edespino/gpdb,kaknikhil/gpdb,greenplum-db/gpdb,royc1/gpdb,yuanzhao/gpdb,lintzc/gpdb,CraigHarris/gpdb,zaksoup/gpdb,CraigHarris/gpdb,lisakowen/gpdb,ahachete/gpdb,edespino/gpdb,zaksoup/gpdb,CraigHarris/gpdb,rvs/gpdb,Quikling/gpdb,zaksoup/gpdb,jmcatamney/gpdb,cjcjameson/gpdb,xuegang/gpdb,0x0FFF/gpdb,edespino/gpdb,janebeckman/gpdb,Quikling/gpdb,50wu/gpdb,cjcjameson/gpdb,50wu/gpdb,rvs/gpdb,CraigHarris/gpdb,royc1/gpdb,kaknikhil/gpdb,Quikling/gpdb,greenplum-db/gpdb,ashwinstar/gpdb,50wu/gpdb,adam8157/gpdb,Quikling/gpdb,xuegang/gpdb,cjcjameson/gpdb,janebeckman/gpdb,royc1/gpdb,yuanzhao/gpdb,xuegang/gpdb,lisakowen/gpdb,edespino/gpdb,adam8157/gpdb,greenplum-db/gpdb,ashwinstar/gpdb,janebeckman/gpdb,rvs/gpdb,xinzweb/gpdb,adam8157/gpdb,Chibin/gpdb,chrishajas/gpdb,jmcatamney/gpdb,adam8157/gpdb,xinzweb/gpdb,rvs/gpdb,janebeckman/gpdb,0x0FFF/gpdb,ahachete/gpdb,janebeckman/gpdb,rvs/gpdb,rvs/gpdb,ahachete/gpdb,ahachete/gpdb,CraigHarris/gpdb,50wu/gpdb,rvs/gpdb,yuanzhao/gpdb,0x0FFF/gpdb,edespino/gpdb,lisakowen/gpdb,lintzc/gpdb,yuanzhao/gpdb