• ANNOUNCE: tclcsv 2.4.2 released

    From Ashok@apnmbx-public@yahoo.com to comp.lang.tcl on Mon Sep 30 22:07:37 2024
    From Newsgroup: comp.lang.tcl

    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
    --- Synchronet 3.20a-Linux NewsLink 1.114
  • From ted@loft.tnolan.com (Ted Nolan@tednolan to comp.lang.tcl on Mon Sep 30 17:59:42 2024
    From Newsgroup: comp.lang.tcl

    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..
    --- Synchronet 3.20a-Linux NewsLink 1.114
  • From Paul Obermeier@obermeier@poSoft.de to comp.lang.tcl on Mon Sep 30 20:16:16 2024
    From Newsgroup: comp.lang.tcl

    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));

    Paul
    --- Synchronet 3.20a-Linux NewsLink 1.114
  • From Ashok@apnmbx-public@yahoo.com to comp.lang.tcl on Tue Oct 1 08:33:14 2024
    From Newsgroup: comp.lang.tcl

    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));

    Paul

    --- Synchronet 3.20a-Linux NewsLink 1.114
  • From Ashok@apnmbx-public@yahoo.com to comp.lang.tcl on Tue Oct 1 08:39:00 2024
    From Newsgroup: comp.lang.tcl

    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?

    --- Synchronet 3.20a-Linux NewsLink 1.114
  • From ted@loft.tnolan.com (Ted Nolan@tednolan to comp.lang.tcl on Tue Oct 1 04:43:52 2024
    From Newsgroup: comp.lang.tcl

    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..
    --- Synchronet 3.20a-Linux NewsLink 1.114