Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test failure in t/spec/S19-command-line/dash-e.t #4905

Open
p6rt opened this issue Dec 22, 2015 · 1 comment
Open

Test failure in t/spec/S19-command-line/dash-e.t #4905

p6rt opened this issue Dec 22, 2015 · 1 comment
Labels

Comments

@p6rt
Copy link

p6rt commented Dec 22, 2015

Migrated from rt.perl.org#126993 (status was 'new')

Searchable as RT126993$

@p6rt
Copy link
Author

p6rt commented Dec 22, 2015

From sinan@unur.com

When running the test with the original file which has​:

is_run $x, :args['-e', "print q[\c[LATIN SMALL LETTER A WITH DOT ABOVE]]"],
{
  out => "\c[LATIN SMALL LETTER A WITH DOT ABOVE]",
  err => '',
  status => 0,
}, '-e print $something works with non-ASCII string literals';

I get​:

# Failed test '-e print $something works with non-ASCII string literals'
# at D​:\Src\rakudo\t\spec\packages\Test\Util.pm line 58
# got out​: "?"
# expected out​: "ȧ"

If I change the test to

is_run $x, :args['-e', "print q[å]"],
  {
  out => "å",

I get​:

ok 2 - -e print $something works with non-ASCII string literals

However, if I replace it with the intended character​:

is_run $x, :args['-e', "print q[ȧ]"],
  {
  out => "ȧ",

I again get​:

# Failed test '-e print $something works with non-ASCII string literals'
# at D​:\Src\rakudo\t\spec\packages\Test\Util.pm line 58
# got out​: "?"
# expected out​: "ȧ"

The test file is encoded as UTF-8, the codepage is set to 65001 in my
command prompt window.

I don't understand why å works but ȧ fails, except that the former is
in "Latin-1 Supplement" and the latter is in "Latin Extended-B".

Also, for reference​:

# Failed test '-e print $something works with non-ASCII string literals'
# at D​:\Src\rakudo\t\spec\packages\Test\Util.pm line 58
# got out​: "i"
# expected out​: "ı"

# Failed test '-e print $something works with non-ASCII string literals'
# at D​:\Src\rakudo\t\spec\packages\Test\Util.pm line 58
# got out​: "g"
# expected out​: "ğ"

Now, Windows command prompt is probably not where I would expect this
to work, except that maybe it can work, so I am reporting it as a
possible bug.

Here's my environment and build info​:

C​:\> ver
Microsoft Windows [Version 10.0.10586]

C​:\> cl
Microsoft (R) C/C++ Optimizing Compiler Version 18.00.31101 for x64

C​:\> nmake /?
Microsoft (R) Program Maintenance Utility Version 12.00.21005.1

C​:\> D​:\Src\rakudo\perl6 -V
...
perl6​::language_version=6.b
perl6​::codename=
perl6​::release-number=
perl6​::build-date=2015-12-22T15​:06​:37Z
perl6​::version=2015.11-718-g73d193b
perl6​::implementation=Rakudo

@p6rt p6rt added the Bug label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant