Skip to content

Need to specify UTF-8 encoding for run/t9915 #2791

Closed
@abeln

Description

@abeln

Steps:

  1. check out fresh dotty repo as per instructions in http://dotty.epfl.ch/docs/usage/getting-started.html
  2. build dotty
  3. run vulpix t9915

Expected:
The test passes.

This repros consistently in our lab's server, but passes in my laptop.

Actual:
It fails with

[info] Test dotty.tools.dotc.CompilationTests.runAll started
-- [E006] Unbound Identifier Error: /u4/anietoro/src/dotty/compiler/../tests/run/t9915/Test_2.scala:3:14 ---------------
3 |  val c = new C_1
  |              ^^^
  |              not found: type C_1
-- Error: /u4/anietoro/src/dotty/compiler/../tests/run/t9915/Test_2.scala:4:9 ------------------------------------------
4 |  assert(c.nulled == "X\u0000ABC")    // "X\000ABC"
  |         ^
  |         unspecified error
-- Error: /u4/anietoro/src/dotty/compiler/../tests/run/t9915/Test_2.scala:5:9 ------------------------------------------
5 |  assert(c.supped == "????????")
  |         ^
  |         unspecified error
-- [E006] Unbound Identifier Error: /u4/anietoro/src/dotty/compiler/../tests/run/t9915/Test_2.scala:7:9 ----------------
7 |  assert(C_1.NULLED == "X\u0000ABC")  // "X\000ABC"
  |         ^^^
  |         not found: C_1
-- [E006] Unbound Identifier Error: /u4/anietoro/src/dotty/compiler/../tests/run/t9915/Test_2.scala:8:9 ----------------
8 |  assert(C_1.SUPPED == "????????")
  |         ^^^
  |         not found: C_1
-- [E006] Unbound Identifier Error: /u4/anietoro/src/dotty/compiler/../tests/run/t9915/Test_2.scala:10:9 ---------------
10 |  assert(C_1.NULLED.size == "XYABC".size)
   |         ^^^
   |         not found: C_1
-- [E006] Unbound Identifier Error: /u4/anietoro/src/dotty/compiler/../tests/run/t9915/Test_2.scala:11:9 ---------------
11 |  assert(C_1.SUPPED.codePointCount(0, C_1.SUPPED.length) == 8)
   |         ^^^
   |         not found: C_1
    Compilation failed for: '../tests/run/t9915' 

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions