[prev in list] [next in list] [prev in thread] [next in thread] 

List:       sqlite-dev
Subject:    [sqlite-dev] =?utf-8?b?5Zue5aSN77yac3FsaXRlLWRldiBEaWdlc3QsIFZv?= =?utf-8?q?l_127=2C_Issue_1?=
From:       "=?UTF-8?B?6bKN5b+X6aOeKOmxvOmdnik=?=" <zhifei.bzf () alibaba-inc ! com>
Date:       2018-09-06 3:04:46
Message-ID: f8fe9315-8fe2-4db2-9a6c-c73ce99fafc2.zhifei.bzf () alibaba-inc ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]

[Attachment #4 (text/plain)]

Hi,
 coped from RFFC 8259, https://tools.ietf.org/html/rfc8259#page-10
       ws = *(
              %x20 /              ; Space
              %x09 /              ; Horizontal tab
              %x0A /              ; Line feed or New line
              %x0D )              ; Carriage return


------------------------------------------------------------------
发件人:sqlite-dev-request <sqlite-dev-request@mailinglists.sqlite.org>
发送时间:2018年9月5日(星期三) 20:00
收件人:sqlite-dev <sqlite-dev@mailinglists.sqlite.org>
主 题:sqlite-dev Digest, Vol 127, Issue 1

Send sqlite-dev mailing list submissions to
 sqlite-dev@mailinglists.sqlite.org

To subscribe or unsubscribe via the World Wide Web, visit
 http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-dev
or, via email, send a message with subject or body 'help' to
 sqlite-dev-request@mailinglists.sqlite.org

You can reach the person managing the list at
 sqlite-dev-owner@mailinglists.sqlite.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of sqlite-dev digest..."


Today's Topics:

   1. JSON1 missing space chars? (Martijn Blaauw)
   2. Re: JSON1 missing space chars? (Richard Hipp)


----------------------------------------------------------------------

Message: 1
Date: Wed, 5 Sep 2018 13:42:00 +0200
From: Martijn Blaauw <martijn81@ziggo.nl>
To: sqlite-dev@mailinglists.sqlite.org
Subject: [sqlite-dev] JSON1 missing space chars?
Message-ID: <82250c11-5312-dacd-75ec-c163ef055323@ziggo.nl>
Content-Type: text/plain; charset=utf-8; format=flowed

Hi,

I am using your "is space" implementation (line ~68), from:
https://github.com/mackyle/sqlite/blob/master/ext/misc/json1.c

I noticed that these space chars where missing:
'\v'  (0x0b)  vertical tab (VT)
'\f'  (0x0c)  feed (FF)

Is this a bug?

I believe the libc isspace() function includes these chars.
My previous implementation is bases on it, here it is:

#define is_space( c )  ( ((c) > 8 && (c) < 14) || (c) == 32 )


Martijn.




------------------------------

Message: 2
Date: Wed, 5 Sep 2018 07:55:20 -0400
From: Richard Hipp <drh@sqlite.org>
To: sqlite-dev@mailinglists.sqlite.org
Subject: Re: [sqlite-dev] JSON1 missing space chars?
Message-ID:
 <CALwJ=MwPGgBGwGCbx-4iEy9U+ZVL7+7Kt6HE8Vnv0b9Ja2+Rgw@mail.gmail.com>
Content-Type: text/plain; charset="UTF-8"

On 9/5/18, Martijn Blaauw <martijn81@ziggo.nl> wrote:
> Hi,
>
> I am using your "is space" implementation (line ~68), from:
> https://github.com/mackyle/sqlite/blob/master/ext/misc/json1.c
>
> I noticed that these space chars where missing:
> '\v'  (0x0b)  vertical tab (VT)
> '\f'  (0x0c)  feed (FF)
>
> Is this a bug?

RFC 7159 says that whitespace in JSON consists of only 0x09, 0x0a,
0x0d, and 0x20.  Am I missing something?

-- 
D. Richard Hipp
drh@sqlite.org


------------------------------

Subject: Digest Footer

_______________________________________________
sqlite-dev mailing list
sqlite-dev@mailinglists.sqlite.org
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-dev


------------------------------

End of sqlite-dev Digest, Vol 127, Issue 1
******************************************

[Attachment #5 (text/html)]

<div class="__aliyun_email_body_block"><div  \
style="line-height:1.7;font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;color:#000000;"><div \
style="clear:both;">Hi,</div><div  style="clear:both;"> coped from RFFC \
8259,&nbsp;https://tools.ietf.org/html/rfc8259#page-10</div><div  \
style="clear:both;"><pre  class="newpage" \
style="font-size:13.3px;margin-top:.0px;margin-bottom:.0px;break-before:page;color:#00 \
0000;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-wei \
ght:400;text-align:start;text-indent:.0px;text-transform:none;text-decoration-style:initial;text-decoration-color:initial;"> \
ws = *(</pre><pre  class="newpage" \
style="font-size:13.3px;margin-top:.0px;margin-bottom:.0px;break-before:page;color:#00 \
0000;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-wei \
ght:400;text-align:start;text-indent:.0px;text-transform:none;text-decoration-style:in \
itial;text-decoration-color:initial;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;%x20 \
/              ; Space  %x09 /              ; Horizontal tab
              %x0A /              ; Line feed or New line
              %x0D )              ; Carriage return</pre></div><div  \
style="clear:both;"><br /></div><blockquote  \
style="margin-right:0;margin-top:0;margin-bottom:0;font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;color:#000000;"><div \
style="clear:both;">------------------------------------------------------------------</div><div \
style="clear:both;">发件人:sqlite-dev-request \
&lt;sqlite-dev-request@mailinglists.sqlite.org&gt;</div><div  \
style="clear:both;">发送时间:2018年9月5日(星期三) 20:00</div><div  \
style="clear:both;">收件人:sqlite-dev \
&lt;sqlite-dev@mailinglists.sqlite.org&gt;</div><div  \
style="clear:both;">主 题:sqlite-dev Digest, Vol 127, Issue 1</div><div  \
style="clear:both;"><br \
/></div>Send&nbsp;sqlite-dev&nbsp;mailing&nbsp;list&nbsp;submissions&nbsp;to<br \
>&nbsp;sqlite-dev@mailinglists.sqlite.org<br ><br \
> >To&nbsp;subscribe&nbsp;or&nbsp;unsubscribe&nbsp;via&nbsp;the&nbsp;World&nbsp;Wide&nbsp;Web,&nbsp;visit<br \
> > >&nbsp;http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-dev<br \
> > > >or,&nbsp;via&nbsp;email,&nbsp;send&nbsp;a&nbsp;message&nbsp;with&nbsp;subject&nbsp;or&nbsp;body&nbsp;'help'&nbsp;to<br \
> > > > >&nbsp;sqlite-dev-request@mailinglists.sqlite.org<br ><br \
> > > > > >You&nbsp;can&nbsp;reach&nbsp;the&nbsp;person&nbsp;managing&nbsp;the&nbsp;list&nbsp;at<br \
> > > > > > >&nbsp;sqlite-dev-owner@mailinglists.sqlite.org<br ><br \
> > > > > > > >When&nbsp;replying,&nbsp;please&nbsp;edit&nbsp;your&nbsp;Subject&nbsp;line&nbsp;so&nbsp;it&nbsp;is&nbsp;more&nbsp;specific<br \
> > > > > > > > >than&nbsp;&quot;Re:&nbsp;Contents&nbsp;of&nbsp;sqlite-dev&nbsp;digest...&quot;<br \
> > > > > > > > > ><br ><br >Today's&nbsp;Topics:<br ><br \
> > > > > > > > > > >&nbsp;&nbsp;&nbsp;1.&nbsp;JSON1&nbsp;missing&nbsp;space&nbsp;chars?&nbsp;(Martijn&nbsp;Blaauw)<br \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \
> > > > > > > > > > > \


[Attachment #6 (text/plain)]

_______________________________________________
sqlite-dev mailing list
sqlite-dev@mailinglists.sqlite.org
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-dev


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic