fourjs-reuben / ex_fglsvgcanvas_lab

Example Lab Files for learning fglsvgcanvas
MIT License
1 stars 0 forks source link

Support DBFORMAT/DBMONEY setting non-dot decimal separator #1

Open sebflaesch opened 1 year ago

sebflaesch commented 1 year ago

The code of ex_fglsvgcanvas_lab_6.4gl could be enhanced to support DBFORMAT/DBMONEY defining a decimal separator different from the ISO dot. When building SVG components like the element with the SFMT() operator, decimal to string conversion occurs and DBFORMAT/DBMONEY applies. If this setting defines a comma as decimal separator (try with DBMONEY="F,") , the SFMT() call will produce numbers with comma as dec separator, and this is not valid SVG.

sebflaesch commented 1 year ago

Here is a patch proposal to fix this. 0001-Support-DBMONEY-DBFORMAT-setting-a-dec-separator-dif.zip