AdaCore / AdaCore/gnatcoll-bindings

Test iconv__iconv1 FAILED: Test character for which there is no transliteration

Open
#20 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Ada
Stars
15
Forks
15
PR merge metrics
No merged PRs in 30d

Description

Hi, I'm attempting to run the test suite here and I'm seeing one failure in the iconv tests. Everything else passes.

This is using glibc 2.39, with the following locales enabled:

C.UTF8 UTF-8
en_US.UTF-8 UTF-8

The failing test is:

INFO     Found 5 tests
INFO     PASS            iconv__bad_charset
INFO     FAIL            iconv__iconv1: command call fails
_Status code: 0
_Output:
_Setup
_   [mkdir]        object directory for project Test
_test.gpr:9:09: warning: there are no sources of language "C" in this project
_Compile
_   [Ada]          test.adb
_   [Ada]          test_assert.adb
_Bind
_   [gprbind]      test.bexch
_   [Ada]          test.ali
_Link
_   [link]         test.adb
_Status code: 1
_Output:
_test.adb:29: PASSED: simple test
_test.adb:30: PASSED:
_test.adb:31: PASSED:
_test.adb:33: PASSED:
_test.adb:37: PASSED:
_test.adb:40: PASSED:
_test.adb:44: PASSED: Test transliteration on ellipsis
_test.adb:52: PASSED: Test UTF-8 to ASCII of ellipsis without transliteration
_test.adb:61: FAILED: Test character for which there is no transliteration
_iconv( 199 130 65, to_code => ASCII, from_code => UTF-8, transliteration => TRUE, ignore => TRUE
_- expect:  65
_- got:  63 65
_<=== TEST FAILED ===>
_
INFO     PASS            omp__sort
INFO     PASS            gmp
INFO     PASS            coders
INFO     Summary:
_  PASS         4
_  FAIL         1

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the iconv__iconv1 failure from the test suite with glibc 2.39 and the listed locales, then inspect test.adb around line 61 and the surrounding iconv test cases. Done means the character-without-transliteration case passes while the other iconv assertions remain passing.

Written by the indexing model from the issue text.

Assessment

Domain
internationalization, testing
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.