From: Julian 'Julik' Tarkhanov Date: 2006-06-22T04:17:40+09:00 Subject: Re: Unicode roadmap? On 21-jun-2006, at 18:20, Yukihiro Matsumoto wrote: > Hi, > > In message "Re: Unicode roadmap?" > on Thu, 22 Jun 2006 00:41:02 +0900, Julian 'Julik' Tarkhanov > writes: > > |Matz, this would be a disaster (if in such a situation a library > |throws). It's gonna be like python. > |Because it means that 99 percent of the libraries will throw. > > Can you elaborate? I don't want to see disaster whatever it is. I imagine that in the case mentioned the encoding assumed for a library will depend on the pragma in the source. Fr instance, I am writing a program that needs to work wuth UTF8 data, but one of the libraries I am using has ASCII in the pragma. What is going to haveppen if I ship this library UTF8 strings? Python libraries just throw, because they do all kinds of no-unicode aware operations on strings or request Unicode strings explicitly. So anytime you want to ship something to a library (or get something from STDIN) you have to decode and encode. As soon as you forget to, you get exceptions everywhere. -- Julian 'Julik' Tarkhanov please send all personal mail to me at julik.nl