[xml] Why does "-" read from stdin?


Why does xmlReadFile read from stdin if "-" is specified as a filename, and is there any way to disable this behaviour?

It seems that this will create potential bugs wherever a program passes a filename to libxml2 without checking it first; if the filename is "-" then libxml2 will attempt to read from stdin and the program may block indefinitely.

Best regards,


Print XML with Prince!

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]