Ticket #784

XML文書の末尾に0x0dがあると例外が発生する
Open Date: 2002-11-20 01:20 Last Update: 2002-12-12 20:39

Reporter:
Owner:
(None)
Type:
Status:
Closed
Component:
(None)
MileStone:
(None)
Priority:
5 - Medium
Severity:
5 - Medium
Resolution:
None
File:
None

Details

DOS/Windowsのように改行コードが0x0d0x0aである環境で作成
されたXML文書では、ルートタグの直後(文書の末尾)に
0x0d0x0aが続くことがよくあります。
サンプルのxml2htmlをUNIX環境でビルドした場合、このよう
な0x0d0x0aで終わるファイルを喰わせると例外が発生します。

このサンプルに限らず、UNIX環境でルートタグの直後に
0x0d0x0aの改行がある場合、同様の例外が発生します。

DOS/Windowsでビルドした場合はこの問題は生じませんが、こ
れはDOS/Windowsのstd::cinがテキストモードで開かれている
ためです。この場合、getlineが行末の0x0dをトリムしてくれ
るようです。

Ticket History (1/1 Histories)

2002-12-12 20:39 Updated by: yotaro
  • Ticket Close date is changed to 2002-12-12 20:39
  • Status Update from Open to Closed

Attachment File List

No attachments

Edit

You are not logged in. I you are not logged in, your comment will be treated as an anonymous post. » Login