forked from perl-pod/pod-simple
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Whine on first non-ASCII byte-sequence and use it to guess Latin-1 vs…
… UTF-8
- Loading branch information
Showing
6 changed files
with
138 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
|
||
=head1 NAME | ||
|
||
Encoding Warning 1 - implicitly Latin-1 | ||
|
||
=head2 DESCRIPTION | ||
|
||
This line should warn that the word caf� contains a non-ASCII character. | ||
|
||
But ch�teau should not generate a warning - once is enough. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<Document start_line="2"> | ||
<head1 start_line="2"> | ||
NAME | ||
</head1> | ||
<Para start_line="4"> | ||
Encoding Warning 1 - implicitly Latin-1 | ||
</Para> | ||
<head2 start_line="6"> | ||
DESCRIPTION | ||
</head2> | ||
<Para start_line="8"> | ||
This line should warn that the word café contains a | ||
non-ASCII character. | ||
</Para> | ||
<Para start_line="10"> | ||
But château should not generate a warning - once is | ||
enough. | ||
</Para> | ||
<head1 errata="1" start_line="-321"> | ||
POD ERRORS | ||
</head1> | ||
<Para errata="1" start_line="-321"> | ||
Hey! | ||
<B> | ||
The above document had some coding errors, which are explained | ||
below: | ||
</B> | ||
</Para> | ||
<over-text errata="1" indent="4" start_line="-321"> | ||
<item-text start_line="-321"> | ||
Around line 8: | ||
</item-text> | ||
<Para start_line="-321"> | ||
Non-ASCII character seen before =encoding in 'café'. | ||
Assuming ISO8859-1 | ||
</Para> | ||
</over-text> | ||
</Document> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
|
||
=head1 NAME | ||
|
||
Encoding Warning 1 - implicitly UTF-8 | ||
|
||
=head2 DESCRIPTION | ||
|
||
This line should warn that the price €9.99 contains a non-ASCII character. | ||
|
||
But château should not generate a warning - once is enough. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<Document start_line="2"> | ||
<head1 start_line="2"> | ||
NAME | ||
</head1> | ||
<Para start_line="4"> | ||
Encoding Warning 1 - implicitly UTF-8 | ||
</Para> | ||
<head2 start_line="6"> | ||
DESCRIPTION | ||
</head2> | ||
<Para start_line="8"> | ||
This line should warn that the price €9.99 contains | ||
a non-ASCII character. | ||
</Para> | ||
<Para start_line="10"> | ||
But château should not generate a warning - once is | ||
enough. | ||
</Para> | ||
<head1 errata="1" start_line="-321"> | ||
POD ERRORS | ||
</head1> | ||
<Para errata="1" start_line="-321"> | ||
Hey! | ||
<B> | ||
The above document had some coding errors, which are explained | ||
below: | ||
</B> | ||
</Para> | ||
<over-text errata="1" indent="4" start_line="-321"> | ||
<item-text start_line="-321"> | ||
Around line 8: | ||
</item-text> | ||
<Para start_line="-321"> | ||
Non-ASCII character seen before =encoding in '€9.99'. | ||
Assuming UTF-8 | ||
</Para> | ||
</over-text> | ||
</Document> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters