Try this tiny test script and you will see.
I see that every one of those tests fails:
$ perl 1199749.pl
1..8
Malformed UTF-8 character (unexpected non-continuation byte 0xe3, imme
+diately after start byte 0xe7) at 1199749.pl line 12.
Malformed UTF-8 character (unexpected non-continuation byte 0x6f, imme
+diately after start byte 0xe3) at 1199749.pl line 12.
looking for directory (dir_without_codes): documentao
not ok 1 - With codes (1)
# Failed test 'With codes (1)'
# at 1199749.pl line 17.
not ok 2 - Without codes (2)
# Failed test 'Without codes (2)'
# at 1199749.pl line 18.
not ok 3 - Without codes (3)
# Failed test 'Without codes (3)'
# at 1199749.pl line 19.
not ok 4 - Without codes (4)
# Failed test 'Without codes (4)'
# at 1199749.pl line 24.
not ok 5 - Glob matches with codes (5)
# Failed test 'Glob matches with codes (5)'
# at 1199749.pl line 28.
# got: 'documentação'
# expected: 'documentação'
not ok 6 - Glob matches without codes (6)
# Failed test 'Glob matches without codes (6)'
# at 1199749.pl line 29.
# got: 'documentação'
# expected: 'documentao'
not ok 7 - Glob matches without codes (7)
# Failed test 'Glob matches without codes (7)'
# at 1199749.pl line 30.
# got: 'documentação'
# expected: 'documentao'
not ok 8 - Without codes (8)
# Failed test 'Without codes (8)'
# at 1199749.pl line 32.
# Looks like you failed 8 tests of 8.
Unfortunately it appears that it isn't portable. I take it that it runs better on Windows?
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|