User talk:Tatata/ksj2osm-railway.pl
Jump to navigation
Jump to search
callback 'Char' bug fix
I find little bug of this script.(ja)このスクリプトのちょっとしたバグを見つけました。 callback 'Char' will be called more than once, even in a same TEXT element. (big file like this will suffer this problem.)(ja)'Char' コールバックは同じTEXTエレメントの中でも2回以上呼ばれる場合があります。(このファイルの用に巨大な物はこの問題が起こりやすい) see more info in 'Getting all the character data' section of this page. (ja)詳しくはこの[page ページ]の'Getting all the character data'と言うセクションをみてください。
@@ -78,14 +78,13 @@
|| $element eq "GM_PointRef.point"
|| $element eq "jps:GM_Point") {get_id(@_);}
- $workString = "";
}
sub handle_char () {
my ($expat, $string) = @_;
- $workString .= $string;
+ $workString = $string;
}
@@ -104,7 +103,6 @@
elsif ($element eq "jps:GM_Curve") {add_point();}
elsif ($element eq "jps:GM_Point") {replace_point();}
- $workString = "";
}
--Adonishi 16:28, 24 May 2009 (UTC)
- Thank you for reporting. It's fixed. (ja)ご連絡、ありがとうございます。修正を行いました。 -- Tatata 05:28, 26 May 2009 (UTC)