Skip to content

[CI][test-sheet-13] musl build failing on alpine:latest (3 | 3.23 | 3.23.0) related to mbsnrtowcs #525

@iamazeem

Description

@iamazeem

Used alpine:3.22 to fix the CI issue with 6c65741.

Dependabot PR: #521
CI failure: https://github.com/liquidaty/zsv/actions/runs/20220169091/job/58040626531

Output of failing `test-sheet-13` (Unable to convert to wide chars)
test-sheet-13: 
Incorrect output:
����S���H�T$XdH+%(
                  Unable to convert to wide chars: 1��A9��'����S���H�T$XdH+%(
                                                                             Una
ble to convert to wide chars: 1��A9��'����S���H�T$XdH+%(
                                                        Unable to convert to wid
e chars: 1��A9��'����S���H�T$XdH+%(
                                   Unable to convert to wide chars: 1��A9��'����
S���H�T$XdH+%(
              Unable to convert to wide chars: 1��A9��'����S���H�T$XdH+%(
                                                                         Unable
to convert to wide chars: 1��A9��'����S���H�T$XdH+%(
                                                    Unable to convert to wide ch
ars: 1��A9��'����S���H�T$XdH+%(
                               Unable to convert to wide chars: 1��A9��'����S���
H�T$XdH+%(
          Unable to convert to wide chars: 1��A9��'����S���H�T$XdH+%(
                                                                     Unable to c
onvert to wide chars: 1��A9��'����S���H�T$XdH+%(
                                                Unable to convert to wide chars:
 1��A9��'����S���H�T$XdH+%(
                           Unable to convert to wide chars: 1��A9��'����S���H�T$
XdH+%(
      Unable to convert to wide chars: 1��A9��'����S���H�T$XdH+%(
                                                                 Unable to conve
rt to wide chars: 1��A9��'����S���H�T$XdH+%(
                                            Unable to convert to wide chars: 1��
A9��'����S���H�T$XdH+%(
                       Unable to convert to wide chars: 1��A9��'����S���H�T$XdH+
%(
  Unable to convert to wide chars: 1��A9��'����S���H�T$XdH+%(
                                                             Unable to convert t
o wide chars: 1��A9��'����S���H�T$XdH+%(
                                        Unable to convert to wide chars: 1��A9��
'����S���H�T$XdH+%(
                   Unable to convert to wide chars: 1��A9��'����S���H�T$XdH+%(
                                                                              Un
able to convert to wide chars: 1��A9��'����S���H�T$XdH+%(
                                                         Unable to convert to wi
de chars: 1��A9��'����S���H�T$XdH+%(

Expected output:
make[2]: *** [Makefile:880: test-sheet-13] Error 1
make[1]: *** [Makefile:616: test-standalone] Error 2
make: *** [Makefile:59: test] Error 2
Key(s)                    Action                    Description
q                         quit                      Exit the application
<esc>                     escape                    Leave the current view or
^                         first                     Jump to the first column
$                         last                      Jump to the last column
<shift><left>             first                     Jump to the first column
<shift><right>            last                      Jump to the last column
k                         up                        Move up one row
j                         down                      Move down one row
h                         left                      Move left one column
l                         right                     Move right one column
<up>                      up                        Move up one row
<down>                    down                      Move down one row
<left>                    left                      Move left one column
<right>                   right                     Move right one column
<ctrl>d                   pagedown                  Move down one page
<ctrl>u                   pageup                    Move up one page
<page up>                 pagedown                  Move down one page
<page down>               pageup                    Move up one page
g g                       top                       Jump to the first row
G                         bottom                    Jump to the last row
/                         find                      Set a search term and jum
n                         next                      Jump to the next search r
|                         gotocolumn                Go to column
e                         open                      Open another CSV file
f                         filter                    Filter by specified text
F                         filtercol                 Filter by specified text
:                         subcommand                Editor subcommand
?                         help                      Display a list of actions
^J                        <Enter>                   Follow hyperlink (if any)
^M                        <Enter>                   Follow hyperlink (if any)
v                         pivot                     Group rows by the column
V                         pivotexpr                 Group rows with group-by
                          where                     Filter by sql expression
                          errors                    Show errors (if any)
                          errors-clear              Clear any/all errors



<esc> to exit help Key(s)
cmp /__w/zsv/zsv/tmp/test-sheet-13.out expected/test-sheet-13.out
/__w/zsv/zsv/tmp/test-sheet-13.out expected/test-sheet-13.out differ: char 1, line 1
test-sheet-13: Failed!
make[2]: Leaving directory '/__w/zsv/zsv/app/test'
make[1]: Leaving directory '/__w/zsv/zsv/app'
Error: Process completed with exit code 2.

Related code:

https://github.com/liquidaty/zsv/blob/90ba5871800249b7361d7e7cacd2f128471e6883/app/sheet.c#L919C19-L924

Related mbsnrtowcs musl libc threads:

The latest musl libc release is v1.2.5 published on 2024-03-01.
Most probably, a new release i.e. v1.2.6 will fix this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    CLIgithub_actionsPull requests that update GitHub Actions codesheetissue related to sheet command

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions