chicken-janitors
[Top][All Lists]
Advanced

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

Re: [Chicken-janitors] #1182: utf8 egg silently accepts invalid byte seq


From: Chicken Trac
Subject: Re: [Chicken-janitors] #1182: utf8 egg silently accepts invalid byte sequences
Date: Sun, 29 Mar 2015 21:52:15 -0000

#1182: utf8 egg silently accepts invalid byte sequences
-------------------------+--------------------------------------------------
  Reporter:  syn         |       Owner:  ashinn 
      Type:  defect      |      Status:  new    
  Priority:  major       |   Milestone:  someday
 Component:  extensions  |     Version:  4.9.x  
Resolution:              |    Keywords:  utf8   
-------------------------+--------------------------------------------------

Comment(by ashinn):

 Maybe I misunderstand, but your code does not generate
 an invalid byte sequence for me:

 $ csi -R utf8 -p "(list->string (map integer->char '(#b11000000
 #b10100111)))"
 ˤ
 $ csi -R utf8 -p "(list->string (map integer->char '(#b11000000
 #b10100111)))" | hexdump -C
 00000000  c3 80 c2 a7 0a                                    |.....|
 00000005

 These are the characters 00C0;LATIN CAPITAL LETTER A WITH GRAVE
 and 00A7;SECTION SIGN corresponding to #b11000000 and #b10100111.

 If you find what you think is a bug, please write a full program and
 attach it,
 using "test" to show clearly what you expect and what is different.

-- 
Ticket URL: <http://bugs.call-cc.org/ticket/1182#comment:4>
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]