Repository navigation
Closed
Description
Testsuite fails on s390x, ppc64 and sparc64 with GHC 9.0.2 (see https://buildd.debian.org/status/logs.php?pkg=haskell-unicode-data&ver=0.3.1-1) with the following error:
Unicode.Char
Unicode blocks
Characters not in any block are unassigned
Characters are in the definition of their corresponding block FAILED [1]
Characters in a block definition have the corresponding block FAILED [2]
Unicode general categories
generalCategory
# PENDING: Incompatible GHC Unicode version
Character classification
isAlpha
# PENDING: Incompatible GHC Unicode version
isAlphaNum
# PENDING: Incompatible GHC Unicode version
isControl
# PENDING: Incompatible GHC Unicode version
isLetter
# PENDING: Incompatible GHC Unicode version
isMark
# PENDING: Incompatible GHC Unicode version
isPrint
# PENDING: Incompatible GHC Unicode version
isPunctuation
# PENDING: Incompatible GHC Unicode version
isSeparator
# PENDING: Incompatible GHC Unicode version
isSpace
# PENDING: Incompatible GHC Unicode version
isSymbol
# PENDING: Incompatible GHC Unicode version
Case
isLower
# PENDING: Incompatible GHC Unicode version
isUpper
# PENDING: Incompatible GHC Unicode version
toLower
# PENDING: Incompatible GHC Unicode version
toLowerString
Examples
Common mapping should match simple one
# PENDING: Incompatible GHC Unicode version
Idempotency of 'foldMap toLowerString'
toUpper
# PENDING: Incompatible GHC Unicode version
toUpperString
Examples
Common mapping should match simple one
# PENDING: Incompatible GHC Unicode version
Idempotency of 'foldMap toUpperString'
toTitle
# PENDING: Incompatible GHC Unicode version
toTitleString
Examples
Common mapping should match simple one
# PENDING: Incompatible GHC Unicode version
toCaseFoldString
Examples
Idempotency of 'foldMap toCaseFoldString'
Numeric
isNumber
# PENDING: Incompatible GHC Unicode version
isNumber implies a numeric value
Failures:
test/Unicode/CharSpec.hs:65:30:
1) Unicode.Char, Unicode blocks, Characters are in the definition of their corresponding block
Character “'\128'” is not in the block “BasicLatin”.
To rerun use: --match "/Unicode.Char/Unicode blocks/Characters are in the definition of their corresponding block/"
test/Unicode/CharSpec.hs:75:22:
2) Unicode.Char, Unicode blocks, Characters in a block definition have the corresponding block
Block is different for “'\128'”. Expected: “Just Latin1Supplement” but got: “Just BasicLatin”.
To rerun use: --match "/Unicode.Char/Unicode blocks/Characters in a block definition have the corresponding block/"
The previous version of this package (0.3.0) built fine on these architectures (see https://buildd.debian.org/status/logs.php?pkg=haskell-unicode-data&ver=0.3.0-2). It appears version 0.3.1 is broken on 64-bit big-endian architectures. Can you please help us identify the problem?
Metadata
Metadata
Assignees
Labels
No labels
Activity
wismill commentedon Dec 1, 2022
Ah, these undocumented primops… Could you try out #98? If you have the opportunity, could you try it with both GHC 9.0.2 and 9.2.5?
Unfortunately I do not have access to a big-endian machine to test this.
harendra-kumar commentedon Dec 1, 2022
We have a s390 CI in unicode-transforms (https://github.com/composewell/unicode-transforms/blob/master/.github/workflows/s390x.yml) . Can we use the same here? Also, why is that CI passing?
harendra-kumar commentedon Dec 1, 2022
Seems like it is testing the hackage release rather than repo code?
curl -s -L https://hackage.haskell.org/package/unicode-data-0.3.0.tar.gz | tar xziliastsi commentedon Dec 1, 2022
@wismill Thanks for taking a look. I tried your PR with GHC 9.0.2 on s390x and failed with the same errors:
wismill commentedon Dec 1, 2022
I think I got it: @iliastsi could you give it another try?
swt2c commentedon Dec 1, 2022
I can confirm that 02c83f0 passes on s390x:
wismill commentedon Dec 17, 2022
unicode-data0.4.0.1 andunicode-data-scripts0.2.0.1 have been released to fix this issue.