On 6/26/06, Izidor Jerebic <ij.rubylist / gmail.com> wrote:
> On 26.6.2006, at 20:37, Michal Suchanek wrote:
>> If you consider s3 = File.open('legacy.txt','rb',:iso885915) { |f|
>> f.read } without autoconversion you would have to immediately do
>> s3.recode :utf8 otherwise s1 + s3 would not work.
> Yes. This shows that if there is no autoconversion, programmer will
> always need to recode to a common app encoding if the aplication is
> to work without problems. And if we always need to recode strings
> which we receive from third-part classes/libraries, encoding handling
> will either consume half of the program lines  or people won't do it
> and programs will be full of errors. As can be seen from experience
> of other languages (and Ruby), the second option will prevail and we
> will be in a mess not much better than today.

I doubt this is in the least bit true. The real problem is that you're
trying to suggest a doomsday scenario based on what currently exists and
emotion. I'm saying that your cure is far worse than disease.

> Therefore m17n without autconversion (as is current Matz's proposal)
> gains us almost nothing. If we have no autoconversion, my vote goes to
> Unicode internal encoding (because it implicitly handles
> autoconversion problems).

So does the coersion proposal that I've made without locking ourselves
into Unicode. If I have a thousand files that are Mojikyo-encoded, it
becomes very inefficient for me to work with it in Unicode and far
easier to work with Mojikyo directly.

I couldn't make sense of your last paragraph.

-austin
-- 
Austin Ziegler * halostatue / gmail.com * http://www.halostatue.ca/
               * austin / halostatue.ca * http://www.halostatue.ca/feed/
               * austin / zieglers.ca