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

Unicode problem with 2012.0 on Mac OSX 10.7.3 #2663

Closed
p6rt opened this issue Mar 6, 2012 · 10 comments
Closed

Unicode problem with 2012.0 on Mac OSX 10.7.3 #2663

p6rt opened this issue Mar 6, 2012 · 10 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Mar 6, 2012

Migrated from rt.perl.org#111572 (status was 'resolved')

Searchable as RT111572$

@p6rt
Copy link
Author

p6rt commented May 13, 2011

From yuriy.ershov@gmail.com

Hi!

I have just downloaded Rakudo (trunk version, git clone) and have
unicode spectest failed.

Details​:

$ uname -mprv
10.7.0 Darwin Kernel Version 10.7.0​: Sat Jan 29 15​:17​:16 PST 2011;
root​:xnu-1504.9.37~1/RELEASE_I386 i386 i386
$ ./perl6 --version

This is Rakudo Perl 6, version 2011.04-26-g678ad30 built on parrot
3.3.0 RELEASE_3_3_0-199-g3b374ae

$ perl Configure.pl --gen-parrot
.........................
auto​::icu - Is ICU installed....................................yes.
.........................
$ gmake && gmake test && gmake spectest
......................... all test are passed except ...
t/spec/S19-command-line/dash-e.t ...............................
Failed 2/3 subtests
.........................
$ make t/spec/S19-command-line/dash-e.t
t/spec/S19-command-line/dash-e.t ..
1..3
ok 1 - -e print $something works
not ok 2 - -e print $something works with non-ASCII string literals
# got out​: "ȧ"
# expected out​: "ȧ"
not ok 3 - -e works with non-ASCII program texts
# got status​: 1
# got out​: ""
# expected out​: "23"
# got err​: "===SORRY!===\nConfused at line 1, near \"print <1 2\"\n"
# expected err​: ""
# Looks like you failed 2 tests of 3
Failed 2/3 subtests

Test Summary Report


t/spec/S19-command-line/dash-e.t (Wstat​: 0 Tests​: 3 Failed​: 2)
  Failed tests​: 2-3
Files=1, Tests=3, 6 wallclock secs ( 0.02 usr 0.00 sys + 4.81 cusr
0.65 csys = 5.48 CPU)
Result​: FAIL

Ok, the minimal example that does not work is​:

$ ./perl6 -e 'print "ȧ\n"'
ȧ
$ ./perl6 -e 'print "фыв\n"'
фыв

At the same time, perl5 works well​:

Yuriy-Ershovs-MacBook-Air​:rakudo ershov$ perl -e 'print "фыв\n"'
фыв
Yuriy-Ershovs-MacBook-Air​:rakudo ershov$ perl -e 'print "ȧ\n"'
ȧ

The environment is good​:
$ export
.........
declare -x LANG="en_US.UTF-8"
.........

@p6rt
Copy link
Author

p6rt commented May 13, 2011

From @masak

This problem has been confirmed to happen in the new nqp as well. It
works on my Ubuntu install of nqp, but it fails on Mac OS X 64 bit.

$ ./nqp -e 'say "<unicode characters here>"
<mojibake here>

@p6rt
Copy link
Author

p6rt commented May 13, 2011

The RT System itself - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Mar 6, 2012

From Jost.Krieger+perl6@ruhr-uni-bochum.de

Installed from Rakudo Star 2012.02

spec-test t/spec/S19-command-line/dash-e.t fails.

even
./perl6 -e 'say "ä"'
gives the wrong result
ä

locale​:
LANG="de_DE.utf-8"

Any information missing?

Jost
--
| Helft Spam ausrotten! HTML in Mail ist unhöflich. |
| Postmaster, JAPH, manchmal Wahrsager am RZ der RUB |
| Bitte immer an Funktionsadressen schreiben​: Postmaster@​rub.de |

@p6rt
Copy link
Author

p6rt commented Oct 7, 2014

From @usev6

Until very recently this has been an issue with Rakudo on Parrot on different *BSD systems. (Nowadays Rakudo also runs on Moar and JVM and on that backends this was not a problem.)

In the last few weeks support for platform encodings (esp. UTF-8) was added for Darwin, FreeBSD, OpenBSD and NetBSD. (For Darwin with this commit​: parrot/parrot@fa21c66).

Since I have no system with Mac OS X I cannot say for sure, that now all tests in S19-command-line/dash-e.t run on Darwin -- but they certainly do on FreeBSD, OpenBSD an NetBSD. Maybe someone else can confirm this for Mac OS X?

So with the next release of Rakudo (Rakudo Star or a monthly compiler release) this should be fixed.

Please note that the tests fail again if you run them with a non-utf8 locale​:

$ LANG=POSIX perl6 t/spec/S19-command-line/dash-e.t

That related problem is mentioned in ticket 116709​: https://rt-archive.perl.org/perl6/Ticket/Display.html?id=116709

@p6rt
Copy link
Author

p6rt commented Oct 7, 2014

The RT System itself - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Oct 29, 2014

From @usev6

For the time being I manually marked the two failing tests in S19-command-line/dash-e.t as 'todo'​: Raku/roast@640aee1582

I hope this can be undone soon (when Rakudo uses the latest Parrot (see above)).

@p6rt
Copy link
Author

p6rt commented Nov 10, 2014

From @usev6

With the latest parrot the tests in S19-command-line/dash-e.t pass on Mac OS X. I unfudged the tests with commit Raku/roast@5d89b2877e and I'm closing this ticket now.

1 similar comment
@p6rt
Copy link
Author

p6rt commented Nov 10, 2014

From @usev6

With the latest parrot the tests in S19-command-line/dash-e.t pass on Mac OS X. I unfudged the tests with commit Raku/roast@5d89b2877e and I'm closing this ticket now.

@p6rt
Copy link
Author

p6rt commented Nov 10, 2014

@usev6 - Status changed from 'open' to 'resolved'

@p6rt p6rt closed this as completed Nov 10, 2014
@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