Linux - Dashes in file-names

Most of the time i'm using Arduino (1.8.13 and 2.0.0-rc2) on my windows 10 pc (and notebook). I changed the sketchbook location to point to my owncloud. Now i installed an older pc in my lab with Linux Mint 20.x and synced my data via my owncloud.
When i try to open Arduino in Linux, i get lots of error messages about "non ASCII-characters in filenames". The problem seems to be the dash ('-') in some files (and their folders). Even some libraries come with examples with dashes in filenames.
Why can't the linux version of arduino handle dashes in filenames? Why does the windows version allow dashes in filenames?
I could use a different sketchbook folder in linux, but i want my projects to be synced to my other PCs and also (even more important) to have my libraries synced on all PCs.

Any ideas for that problem? Manually renaming (folder and file) would take some (way too much) time, because there are almost 1000 files with dashes in my sketchbook - until now, i loveed project_does_x-rev-123.ino style filenames :frowning:

I'm using Arduino 1.8.13 in Linux, and I have no problem saving or loading a file with hyphen(s) in its name (note: a hyphen is an ASCII character and is what you type when you hit the key between the "0" and "+" keys on a standard US keyboard, not to be confused with the various "dash" characters that are not ASCII).

image

Are you using a different version in Linux?

You must be running a quite old version of the IDE.
Hopefully not the one that is in the repository.
It is way out of date like version 1.0.5

For some goofy reason the older versions of the Arduino IDE added extra code to puke on certain characters in file/directory names and for a while the restrictions got worse and worse on subsequent releases.

The characters checked for vary depending on which specific IDE version.
This goofyness was removed somewhere around versions 1.6x
Using versions prior to about 1.6.8 particularly 1.5 to 1.55, 1.6.6 and 1.6.8 have issues so severe as to make them unusable.

I would recommend running the latest IDE version 1.8.19
It even has fixes for log4j

The arduino.cc team made some decisions (poor ones, IMO) a while back (I think it was when 1.5x came out) as to how and where they wanted to store the Arduino development tools that will forever preclude them from using the normal package managers in linux.
This is why the Arduino packages in the mint and ubuntu distros are way out of date

You will need to download the image from the arduino.cc site and extract it wherever you want it.
You can start up the IDE from the file manager, caja, nemo, etc...
by just clicking on the "arduino" script.

--- bill

Indeed, just checked the Arduino-Version, that came from the reposiory. It was 1.05!
Downloaded the latest 1.8.19 and all is fine!
thanks!

I'm using 1.8.19 in Manjaro linux 20.1 rc downloaded and installed friday 7 Jan