Skip to content

'cannot change locale'; 'printf: null: invalid number' #20

@LinuxOnTheDesktop

Description

@LinuxOnTheDesktop

Describe the bug

covid19-cli.sh: line 9: warning: setlocale: LC_NUMERIC: cannot change locale (en_US): No such file or directory
 ✔  Country: united states
jq: error (at <stdin>:1): Cannot iterate over null (null)
jq: error (at <stdin>:1): Cannot iterate over null (null)

[my path]/covid19-cli.sh: line 411: printf: null: invalid number
Cases:		0	
[my path]/covid19-cli/dist/covid19-cli.sh: line 412: printf: null: invalid number
Deaths:		0	
[my path]/covid19-cli/dist/covid19-cli.sh: line 413: printf: null: invalid number
Recovered:	0

To Reproduce
Run the program with seeminly any option.

Expected behavior
A clear and concise description of what you expected to happen.

Desktop:

  • OS: [e.g. iOS]
    Linux Mint 19.3 x64 Cinnamon

Software versions
GNU bash, version 4.4.20(1)-release (x86_64-pc-linux-gnu)
Latest git version of covid19-cli

Additional context
I think it is a problem with the data source - for, a similar program that I have has a similar problem - but your program should handle the problem more gracefully.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions