Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

invalid_encoding for no apparent reason #248

Open
evokateur opened this issue Aug 7, 2021 · 6 comments
Open

invalid_encoding for no apparent reason #248

evokateur opened this issue Aug 7, 2021 · 6 comments

Comments

@evokateur
Copy link

I installed the gem on two Ubuntu machines and a mac.

I tested with a very simple CSV file

$ cat foo.csv
field1,field2,field3
"hello","hello","hello"

The result on the mac:

$ csvlint foo.csv
..
foo.csv is VALID

The result on both Ubuntu machines:

$ csvlint foo.csv

foo.csv is INVALID
1. invalid_encoding. Row: 1. 1

The encoding of the file:

$ file foo.csv
foo.csv: ASCII text

environments:

  • macOS Big Sur, zsh
  • Ubuntu 18.04.4 LTS running in Homestead
  • Ubuntu 18.04.2 LTS EC2 instance
@evokateur
Copy link
Author

validation results of the file on csvlint.io

https://csvlint.io/validation/610e284a7513b4000400002d

@evokateur
Copy link
Author

the file:
foo.csv

@evokateur
Copy link
Author

tried unix2dos, same result in Ubuntu

$ file foo.csv
foo.csv: ASCII text, with CRLF line terminators
$ csvlint foo.csv

foo.csv is INVALID
1. invalid_encoding. Row: 1. 1

@evokateur
Copy link
Author

Ubuntu installation

sudo apt install ruby ruby-dev make gcc

sudo gem install csvlint

@markus-oehme-pg40
Copy link

Same error for me on Fedora 34 with manually installed csvlint 0.3.3.

@markus-oehme-pg40
Copy link

This seems to be a problem with ruby3. After switching back to ruby2 (https://blog.kagesenshi.org/2021/05/ruby24-fedora34.html) and upgrading to csvlint 0.4.0 the error vanished.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants