Re: [Chicken-users] UTF-8 support in eggs

2014-07-08 Thread Mario Domenech Goulart
Hi, On Tue, 08 Jul 2014 08:57:43 +0400 Yaroslav Tsarko eriktsa...@googlemail.com wrote: Why don`t just add (use utf8) line explicitly to all the eggs that handle strings? That will ultimately fix the problem and will clearly indicate that egg performs string manipulations and is capable of

Re: [Chicken-users] UTF-8 support in eggs

2014-07-08 Thread Yaroslav Tsarko
Hi, On 08.07.2014 16:40, Mario Domenech Goulart wrote: On the other hand, we risk breaking eggs that operate on latin1 text. UTF-8 support may also affect performance-sensitive code. Best wishes. Mario Isn`t UTF-8 backward-compatible with Latin-1 and ASCII encodings? AFAIR UTF-8 is the

Re: [Chicken-users] UTF-8 support in eggs

2014-07-08 Thread Mario Domenech Goulart
Hi Alex, On Tue, 8 Jul 2014 12:42:21 +0900 Alex Shinn alexsh...@gmail.com wrote: On Tue, Jul 8, 2014 at 5:58 AM, Mario Domenech Goulart mario.goul...@gmail.com wrote: I want to use some eggs and I need them to handle UTF-8. By handle UTF-8 I mean treat strings as UTF-8, so that

Re: [Chicken-users] UTF-8 support in eggs

2014-07-08 Thread Mario Domenech Goulart
On Tue, 08 Jul 2014 17:27:27 +0400 Yaroslav Tsarko eriktsa...@googlemail.com wrote: On 08.07.2014 16:40, Mario Domenech Goulart wrote: On the other hand, we risk breaking eggs that operate on latin1 text. UTF-8 support may also affect performance-sensitive code. Isn`t UTF-8

Re: [Chicken-users] UTF-8 support in eggs

2014-07-08 Thread Yaroslav Tsarko
Hi, On 08.07.2014 18:03, Mario Domenech Goulart wrote: They are compatible only in the 7-bit ASCII range. The remaining bit in the byte makes the whole difference. :-) In UTF-8 it means either here's your 8-bit character or look at the next byte. In latin1 it always means here's your 8-bit

Re: [Chicken-users] Crash with multithreaded TCP code

2014-07-08 Thread Christopher Collins
Just a quick follow-up- I tried the above program with a newer version of chicken (4.9.0.1), and it works without issue. So I am considering the problem solved. Thanks for the cool piece of software. Christopher On Sun, Jul 6, 2014 at 8:01 PM, Christopher Collins ccollins47...@gmail.com

Re: [Chicken-users] UTF-8 support in eggs

2014-07-08 Thread Oleg Kolosov
On 07/08/14 16:40, Mario Domenech Goulart wrote: Hi, On Tue, 08 Jul 2014 08:57:43 +0400 Yaroslav Tsarko eriktsa...@googlemail.com wrote: Why don`t just add (use utf8) line explicitly to all the eggs that handle strings? That will ultimately fix the problem and will clearly indicate that

Re: [Chicken-users] UTF-8 support in eggs

2014-07-08 Thread Alex Shinn
On Tue, Jul 8, 2014 at 11:00 PM, Mario Domenech Goulart mario.goul...@gmail.com wrote: On Tue, 8 Jul 2014 12:42:21 +0900 Alex Shinn alexsh...@gmail.com wrote: 4. Make affected eggs functors on the set of basic string operations. Wouldn't 4 be an implementation method of 2? Yes. --