Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
02_utf8_flag.t, remove Char.h, and replace Char.xs with the following…
- Loading branch information
Showing
3 changed files
with
43 additions
and
53 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,14 @@ | ||
#!/usr/bin/perl | ||
|
||
use strict; | ||
use warnings; | ||
use utf8 (); | ||
|
||
use Test::More tests => 2; | ||
use XML::Char; | ||
|
||
my $str = "\xC3"; | ||
is( XML::Char->valid($str), !!1, "accept U+00C3 with UTF8 flag off" ); | ||
|
||
utf8::upgrade($str); | ||
is( XML::Char->valid($str), !!1, "accept U+00C3 with UTF8 flag on" ); |