[Debburn-devel] What can I assume about libc?

Albert Cahalan acahalan at gmail.com
Wed Oct 4 16:27:17 UTC 2006


On 10/3/06, Lorenz Minder <lminder at gmx.net> wrote:
> > On 10/2/06, Lorenz Minder <lminder at gmx.net> wrote:

> Yes. The problem is, if we have UTF-8 strings internally, it is a real
> pain to do string processing with them; even replacing a given character
> with another becomes a major pain. It seems much easier to use
> mbstowcs() and then process these strings, and convert when we write
> them to files. IOW, I'm not against writing UTF-8 to files, but I don't
> think it is a reasonable in-core representation of strings if you want
> to do anything at all with them.

Assuming we still care about Windows, mbstowcs() won't do.
I'm fairly sure that you end up with a mix of 2-byte and 4-byte
characters. Custom functions may be best:

utf8_to_u32
u32_to_utf8
u32_to_utf16
utf16_to_u32

> > (then again, kicking mkisofs out might be a better move)
>
> I think mkisofs is a pretty important program; in fact it is currently
> my main reason for being interested in this project.

I also think it is a pretty important program. It doesn't need
to ship with the CD burning drivers though. Perhaps you would
like to maintain it yourself, without the rest of the stuff.



More information about the Debburn-devel mailing list