Re: UTF-8

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Ingo Schwarze
Subject: Re: UTF-8
Date: Saturday, August 7, 2010 - 9:47 am

Alexander Polakov wrote on Sat, Aug 07, 2010 at 06:52:24PM +0400:


Ugh.
I hate that.

Well, i partly see a point in providing such functions in libraries,
because libraries are used for compiling all sorts of software,
including typesetting software etc. etc.

But do we really want to uproot the tree in src/bin in this respect?
I value correctness by simplicity, and this code looks nightmarish.
More than 20 lines of code basically for counting up the length
of a word, involving five calls to two different library functions,
not counting memset.

Yes, it is possible to put all kinds of bytes into filenames.
But that doesn't mean it is a smart idea, and i'm not sure
it should be actively encouraged.

And even if you happen to think there is nothing wrong with
filenames that cannot be displayed everywhere, or with filenames
that look identical but are actually different, or with filenames
that some software may handle poorly, I consider the price we have
to pay for this feature rather high.
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
UTF-8 (was: Re: CVS: cvs.openbsd.org: src), Christian Weisgerber, (Wed Jul 28, 7:58 am)
Re: UTF-8 (was: Re: CVS: cvs.openbsd.org: src), Christian Weisgerber, (Wed Jul 28, 12:45 pm)
Re: UTF-8, Jordi Beltran Creix, (Wed Aug 4, 6:22 am)
Re: UTF-8, Matthew Dempsky, (Wed Aug 4, 1:36 pm)
Re: UTF-8, Jordi Beltran Creix, (Wed Aug 4, 6:20 pm)
Re: UTF-8, Matthew Szudzik, (Thu Aug 5, 5:49 am)
Re: UTF-8, Philip Guenther, (Thu Aug 5, 11:33 am)
Re: UTF-8, Matthew Szudzik, (Thu Aug 5, 12:50 pm)
Re: UTF-8, Kevin Chadwick, (Thu Aug 5, 3:05 pm)
Re: UTF-8, Philip Guenther, (Thu Aug 5, 7:40 pm)
Re: UTF-8, Marco Peereboom, (Thu Aug 5, 8:06 pm)
Re: UTF-8, Dmitrij D. Czarkoff, (Thu Aug 5, 10:28 pm)
Re: UTF-8, Marc Espie, (Fri Aug 6, 4:31 am)
Re: UTF-8, STeve Andre', (Fri Aug 6, 6:18 am)
Re: UTF-8, Kevin Chadwick, (Fri Aug 6, 6:52 am)
Re: UTF-8, Alexander Polakov, (Sat Aug 7, 7:52 am)
Re: UTF-8, Ingo Schwarze, (Sat Aug 7, 9:47 am)