chicken-janitors
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Chicken-janitors] #513: json-abnf chokes on escapes in strings


From: Chicken Trac
Subject: [Chicken-janitors] #513: json-abnf chokes on escapes in strings
Date: Sun, 20 Feb 2011 03:53:06 -0000

#513: json-abnf chokes on escapes in strings
------------------------+---------------------------------------------------
 Reporter:  syn         |       Owner:  iraikov
     Type:  defect      |      Status:  new    
 Priority:  major       |   Milestone:  4.7.0  
Component:  extensions  |     Version:  4.6.x  
 Keywords:  json-abnf   |  
------------------------+---------------------------------------------------
 Parsing JSON strings containing escape sequences like {{{"\n"}}} or
 {{{"\u0040"}}} fails. To reproduce this, try:

 {{{
 (use json-abnf)
 (parser "[\"\\n\"]")
 }}}

 which results in:

 {{{
 JSON parser error on stream: ["\n"]

 Error: (caar) bad argument type: ()

         Call history:

         <syntax>          (parser "[\"\\n\"]")
         <eval>    (parser "[\"\\n\"]")
         string->list
         p291
         lexgen#bar
         lexgen#bar
         lexgen#bar
         lexgen#bar
         lexgen#bar
         lexgen#bar
         print           <--

 }}}

-- 
Ticket URL: <http://bugs.call-cc.org/ticket/513>
Chicken Scheme <http://www.call-with-current-continuation.org/>
Chicken Scheme is a compiler for the Scheme programming language.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]