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 13:47:00 -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):

 This is intentional - existing chicken code mixes binary strings
 and text strings as strings, so we can't in general forbid such
 invalid sequences.

 We can try to provide sane defaults, and indeed if you use that
 definition of evil-quote with utf8 imported, you get a valid
 sequence.  We absolutely can't do anything about users who
 aren't even using the utf8 egg.

 What we _can_ (and should) do is provide utilities to check if
 a string is valid utf8, and/or strip invalid sequences.

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