Thread from comp.lang.tcl (5 replies)
ANNOUNCE: tclcsv 2.4.2 released
tclcsv 2.4.2 released - update for Tcl 9. The tclcsv extension for Tcl provides a fast and flexible means of reading and writing text files in Comma Separated Value (CSV) format. Includes a UI widget for sniffing CSV dialects. Docs: https://tclcsv.magicsplat.com Download: https://sourceforge.net/projects/tclcsv/files/ Repository:https://github.com/apnadkarni/tcl-csvClick on article to view all threads in comp.lang.tcl
Re: ANNOUNCE: tclcsv 2.4.2 released
In article <vdek4i$2a8ek$2@dont-email.me>, Ashok <apnmbx-public@yahoo.com> wrote: >tclcsv 2.4.2 released - update for Tcl 9. > >The tclcsv extension for Tcl provides a fast and flexible means of >reading and writing text files in Comma Separated Value (CSV) format. >Includes a UI widget for sniffing CSV dialects. > >Docs: https://tclcsv.magicsplat.com >Download: https://sourceforge.net/projects/tclcsv/files/ >Repository:https://github.com/apnadkarni/tcl-csv I was unaware of this. When would I use this rather than the CSV package in tcllib? Is it a case of more efficient, or are there other differences? -- columbiaclosings.com What's not in Columbia anymore..Click on article to view all threads in comp.lang.tcl
Re: ANNOUNCE: tclcsv 2.4.2 released
Am 30.09.2024 um 18:37 schrieb Ashok: > tclcsv 2.4.2 released - update for Tcl 9. > > The tclcsv extension for Tcl provides a fast and flexible means of reading and writing text files in Comma Separated Value (CSV) format. > Includes a UI widget for sniffing CSV dialects. > > Docs: https://tclcsv.magicsplat.com > Download: https://sourceforge.net/projects/tclcsv/files/ > Repository:https://github.com/apnadkarni/tcl-csv I get the following errors when trying to compile on Windows with gcc: generic/csv.c: In function 'csv_format_cell': generic/csv.c:1877:49: error: invalid operands to binary - (have 'long long int' and 'char *') Tcl_DStringSetLength(ds, (Tcl_Size) dst - p); ~~~~~~~~~~~~~~ ^ generic/csv.c:1928:45: error: invalid operands to binary - (have 'long long int' and 'char *') Tcl_DStringSetLength(ds, (Tcl_Size) dst - p); I assume, the Tcl_DStringSetLength lines should be: Tcl_DStringSetLength(ds, (Tcl_Size) (dst - p)); PaulClick on article to view all threads in comp.lang.tcl
Re: ANNOUNCE: tclcsv 2.4.2 released
Oops. Built the binaries from my work area so those should be ok. Forgot to commit the final source :-( so the source distribution generated from git is broken. Fixed and released now as 2.4.3. Sorry about that. /Ashok On 9/30/2024 11:46 PM, Paul Obermeier wrote: > Am 30.09.2024 um 18:37 schrieb Ashok: >> tclcsv 2.4.2 released - update for Tcl 9. >> >> The tclcsv extension for Tcl provides a fast and flexible means of >> reading and writing text files in Comma Separated Value (CSV) format. >> Includes a UI widget for sniffing CSV dialects. >> >> Docs: https://tclcsv.magicsplat.com >> Download: https://sourceforge.net/projects/tclcsv/files/ >> Repository:https://github.com/apnadkarni/tcl-csv > > I get the following errors when trying to compile on Windows with gcc: > > generic/csv.c: In function 'csv_format_cell': > generic/csv.c:1877:49: error: invalid operands to binary - (have 'long > long int' and 'char *') > Tcl_DStringSetLength(ds, (Tcl_Size) dst - p); > ~~~~~~~~~~~~~~ ^ > generic/csv.c:1928:45: error: invalid operands to binary - (have 'long > long int' and 'char *') > Tcl_DStringSetLength(ds, (Tcl_Size) dst - p); > > > I assume, the Tcl_DStringSetLength lines should be: > Tcl_DStringSetLength(ds, (Tcl_Size) (dst - p)); > > PaulClick on article to view all threads in comp.lang.tcl
Re: ANNOUNCE: tclcsv 2.4.2 released
If you are happy with tcllib's csv, I would suggest keep using it. Always easier to distribute Tcl than a binary. What tclcsv gives you other than speed, is more options for configuring the CSV dialect (delimiters, quoting method, headers etc.), a feature to guess ("sniff") the dialect, and a Tk preview widget (a la Excel CSV import) - see https://tclcsv.magicsplat.com/#tclcsv_dialectpicker /Ashok On 9/30/2024 11:29 PM, Ted Nolan <tednolan> wrote: > In article <vdek4i$2a8ek$2@dont-email.me>, > Ashok <apnmbx-public@yahoo.com> wrote: >> tclcsv 2.4.2 released - update for Tcl 9. >> >> The tclcsv extension for Tcl provides a fast and flexible means of >> reading and writing text files in Comma Separated Value (CSV) format. >> Includes a UI widget for sniffing CSV dialects. >> >> Docs: https://tclcsv.magicsplat.com >> Download: https://sourceforge.net/projects/tclcsv/files/ >> Repository:https://github.com/apnadkarni/tcl-csv > > I was unaware of this. When would I use this rather than the CSV package > in tcllib? Is it a case of more efficient, or are there other differences?Click on article to view all threads in comp.lang.tcl
Re: ANNOUNCE: tclcsv 2.4.2 released
In article <vdfp4c$2j5rv$2@dont-email.me>, Ashok <apnmbx-public@yahoo.com> wrote: >If you are happy with tcllib's csv, I would suggest keep using it. >Always easier to distribute Tcl than a binary. > >What tclcsv gives you other than speed, is more options for configuring >the CSV dialect (delimiters, quoting method, headers etc.), a feature to >guess ("sniff") the dialect, and a Tk preview widget (a la Excel CSV >import) - see https://tclcsv.magicsplat.com/#tclcsv_dialectpicker > >/Ashok > Thanks! -- columbiaclosings.com What's not in Columbia anymore..Click on article to view all threads in comp.lang.tcl