Skip to content

Commit

Permalink
Easier wide_to_html debugging from ged2site
Browse files Browse the repository at this point in the history
  • Loading branch information
nigelhorne committed Aug 19, 2024
1 parent 46e9638 commit 95f8a42
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gedcom
Original file line number Diff line number Diff line change
Expand Up @@ -13379,7 +13379,6 @@ sub wide_to_html

# print STDERR __LINE__, ": ($string)\n";
if($string =~ /[^[:ascii:]]/) {
complain("TODO: wide_to_html($string)");
$string = HTML::Entities::encode($string);
if($string =~ /[^[:ascii:]]/) {
print STDERR (unpack 'H*', $string);
Expand All @@ -13389,6 +13388,9 @@ sub wide_to_html
while((my @call_details = caller($i++))) {
print STDERR "\t", colored($call_details[2] . ' of ' . $call_details[1], 'red'), "\n";
}
complain("TODO: wide_to_html($string)");
warn "TODO: wide_to_html($string)";
$string =~ s/[^[:ascii:]]/XXXXX/g;
die "BUG: wide_to_html($string)";
}
}
Expand Down

0 comments on commit 95f8a42

Please sign in to comment.