Code Monkey home page Code Monkey logo

Comments (3)

joshbode avatar joshbode commented on July 18, 2024

I suspect it needs something like this in checknullstart:

--- a/src/parsefields.jl
+++ b/src/parsefields.jl
@@ -8,7 +8,7 @@ const STATE = Ref(None)
 @inline function checknullstart(io::IO, opt::CSV.Options, state)
     eof(io) && (state[] = EOF; return 0x00, true)
     b = unsafe_read(io, UInt8)
-    while b == CSV.SPACE || b == CSV.TAB || b == opt.quotechar
+    while b != opt.delim && (b == CSV.SPACE || b == CSV.TAB || b == opt.quotechar)
         eof(io) && (state[] = EOF; return b, true)
         b = unsafe_read(io, UInt8)
     end

Will test and provide a pull request if so.

from csv.jl.

quinnj avatar quinnj commented on July 18, 2024

I think you're right. We need to make sure we don't ignore whitespace if the file delimiter itself is whitespace.

from csv.jl.

joshbode avatar joshbode commented on July 18, 2024

OK - I'll work out some additional test-cases - making this change didn't break any existing ones

from csv.jl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.