Re: [xml] Some things about xmlCharEncodingHandler
- From: "Oliver Stöneberg" <oliverst online de>
- To: Igor Zlatkovic <igor zlatkovic com>
- Cc: xml gnome org
- Subject: Re: [xml] Some things about xmlCharEncodingHandler
- Date: Sun, 08 Feb 2004 11:32:03 +0100
Okay, now I must clarify: I didn't say that you should overwrite the
handler in any libxml function. You must do it in your program's code.
That because only your program can know how and when to do it without
crying thereafter.
Ah OK, alittle missunderstanding on my side.
So, the only safe thing you can do to xmlNewCharEncodingHandler is to
have it return the existing handler, if one is found. The caller,
possibly the client application code, must then deal with the fact that
callbacks possibly aren't the desired ones. The caller can then
overwrite the callbacks in the returned handler at a time and in a way
it knows is acceptable for the rest of application.
So the "patch" is OK and should be applied, right?
I still think you should never need to replace the default handlers for
a given encoding. Why would you want to do that?
I don't want to do that, I just had the thought, that somebody
mightwant to do it in his program. I just thought about a few things,
that could happen and what would be teh cause of the change to the
xmlNewCharEncodingHandler function.
So long
Oliver
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]