You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a new bug with incompatible character in v1.4.4
❯ locale
LANG=fr_FR.UTF-8
LC_CTYPE=fr_FR.UTF-8
LC_NUMERIC=fr_FR.UTF-8
LC_TIME=fr_FR.UTF-8
LC_COLLATE=fr_FR.UTF-8
LC_MONETARY=fr_FR.UTF-8
LC_MESSAGES=fr_FR.UTF-8
LC_PAPER=fr_FR.UTF-8
LC_NAME=fr_FR.UTF-8
LC_ADDRESS=fr_FR.UTF-8
LC_TELEPHONE=fr_FR.UTF-8
LC_MEASUREMENT=fr_FR.UTF-8
LC_IDENTIFICATION=fr_FR.UTF-8
LC_ALL=
❯ colorls /home/artyom/Vidéos
Traceback (most recent call last):
13: from /usr/bin/colorls:23:in `<main>'
12: from /usr/bin/colorls:23:in `load'
11: from /usr/lib/ruby/gems/2.7.0/gems/colorls-1.4.4/exe/colorls:26:in `<top (required)>'
10: from /usr/lib/ruby/gems/2.7.0/gems/colorls-1.4.4/lib/colorls/flags.rb:31:in `process'
9: from /usr/lib/ruby/gems/2.7.0/gems/colorls-1.4.4/lib/colorls/flags.rb:83:in `process_args'
8: from /usr/lib/ruby/gems/2.7.0/gems/colorls-1.4.4/lib/colorls/flags.rb:83:in `each'
7: from /usr/lib/ruby/gems/2.7.0/gems/colorls-1.4.4/lib/colorls/flags.rb:86:in `block in process_args'
6: from /usr/lib/ruby/gems/2.7.0/gems/colorls-1.4.4/lib/colorls/core.rb:51:in `ls_dir'
5: from /usr/lib/ruby/gems/2.7.0/gems/colorls-1.4.4/lib/colorls/core.rb:51:in `map!'
4: from /usr/lib/ruby/gems/2.7.0/gems/colorls-1.4.4/lib/colorls/core.rb:51:in `block in ls_dir'
3: from /usr/lib/ruby/gems/2.7.0/gems/colorls-1.4.4/lib/colorls/fileinfo.rb:29:in `dir_entry'
2: from /usr/lib/ruby/gems/2.7.0/gems/colorls-1.4.4/lib/colorls/fileinfo.rb:29:in `new'
1: from /usr/lib/ruby/gems/2.7.0/gems/colorls-1.4.4/lib/colorls/fileinfo.rb:17:in `initialize'
/usr/lib/ruby/gems/2.7.0/gems/colorls-1.4.4/lib/colorls/fileinfo.rb:17:in `join': incompatible character encodings: UTF-8 and ASCII-8BIT (Encoding::CompatibilityError)
This happen only if the desired path directory contain a file/directory with a special character.
It does not happen if I 'colorls' without path and I'm already in the directory:
❯ cd /home/artyom/Vidéos
❯ colorls
Films/ Séries/
It does not happen if the wanted directory contain no file/directory with special character:
❯ colorls /home/artyom/Téléchargements
Nothing to show here
❯ touch /home/artyom/Téléchargements/test
❯ colorls /home/artyom/Téléchargements
test
❯ touch /home/artyom/Téléchargements/tést
❯ colorls /home/artyom/Téléchargements
Traceback (most recent call last):
13: from /usr/bin/colorls:23:in `<main>'
12: from /usr/bin/colorls:23:in `load'
11: from /usr/lib/ruby/gems/2.7.0/gems/colorls-1.4.4/exe/colorls:26:in `<top (required)>'
10: from /usr/lib/ruby/gems/2.7.0/gems/colorls-1.4.4/lib/colorls/flags.rb:31:in `process'
9: from /usr/lib/ruby/gems/2.7.0/gems/colorls-1.4.4/lib/colorls/flags.rb:83:in `process_args'
8: from /usr/lib/ruby/gems/2.7.0/gems/colorls-1.4.4/lib/colorls/flags.rb:83:in `each'
7: from /usr/lib/ruby/gems/2.7.0/gems/colorls-1.4.4/lib/colorls/flags.rb:86:in `block in process_args'
6: from /usr/lib/ruby/gems/2.7.0/gems/colorls-1.4.4/lib/colorls/core.rb:51:in `ls_dir'
5: from /usr/lib/ruby/gems/2.7.0/gems/colorls-1.4.4/lib/colorls/core.rb:51:in `map!'
4: from /usr/lib/ruby/gems/2.7.0/gems/colorls-1.4.4/lib/colorls/core.rb:51:in `block in ls_dir'
3: from /usr/lib/ruby/gems/2.7.0/gems/colorls-1.4.4/lib/colorls/fileinfo.rb:29:in `dir_entry'
2: from /usr/lib/ruby/gems/2.7.0/gems/colorls-1.4.4/lib/colorls/fileinfo.rb:29:in `new'
1: from /usr/lib/ruby/gems/2.7.0/gems/colorls-1.4.4/lib/colorls/fileinfo.rb:17:in `initialize'
/usr/lib/ruby/gems/2.7.0/gems/colorls-1.4.4/lib/colorls/fileinfo.rb:17:in `join': incompatible character encodings: UTF-8 and ASCII-8BIT (Encoding::CompatibilityError)
Description
There is a new bug with incompatible character in v1.4.4
This happen only if the desired path directory contain a file/directory with a special character.
It does not happen if I 'colorls' without path and I'm already in the directory:
It does not happen if the wanted directory contain no file/directory with special character:
The text was updated successfully, but these errors were encountered: