Skip to content

Commit

Permalink
Better help in debugging XML failures
Browse files Browse the repository at this point in the history
  • Loading branch information
nigelhorne committed Jul 25, 2024
1 parent 2fd5470 commit c57a107
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ged2site
Original file line number Diff line number Diff line change
Expand Up @@ -14798,6 +14798,12 @@ sub wide_to_xml

# print STDERR __LINE__, ": ($string)\n";
if($string =~ /[^[:ascii:]]/) {
my $i = 0;
while((my @call_details = caller($i++))) {
print STDERR "\t", colored($call_details[2] . ' of ' . $call_details[1], 'red'), "\n";
}
warn "TODO: wide_to_xml($string)";
$string =~ s/[^[:ascii:]]/XXXXX/g;
die "BUG: wide_to_xml($string)";
}
return $string;
Expand Down

0 comments on commit c57a107

Please sign in to comment.