[GRASS-dev] [GRASS GIS] #2692: v.in.ascii does not handle text in qoutes

GRASS GIS trac at osgeo.org
Thu Jun 18 12:01:03 PDT 2015


#2692: v.in.ascii does not handle text in qoutes
-------------------------+-------------------------------------------------
  Reporter:  wenzeslaus  |      Owner:  grass-dev@…
      Type:  defect      |     Status:  new
  Priority:  normal      |  Milestone:  7.0.1
 Component:  Default     |    Version:  svn-trunk
Resolution:              |   Keywords:  CSV, doublequote, singlequote, text
       CPU:              |  delimiter
  Unspecified            |   Platform:  Unspecified
-------------------------+-------------------------------------------------

Comment (by glynn):

 Replying to [comment:7 mlennert]:

 > I propose two small changes (attached tokenise_corrected.diff), one
 seems just a typo (in case A_END_RECORD: "*q++ - '\0';") and the other
 comes from the fact that when we are in state AFTER_QUOTE and we reach a
 delimiter, we have to go back to state S_START. Otherwise if the next
 field starts again with a quote, this quote is treated as a second quote.

 Indeed, good catches.

 Applied as r65499.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2692#comment:8>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list