UbuntuForums / wireless-info

This script gathers the infos necessary for troubleshooting a wireless connection and saves them in a text file, wrapping it in an archive if it exceeds the 19.5 kB size limit for '.txt' attachments on the Ubuntu Forums.
153 stars 36 forks source link

Getting rid of smart quotes in older stat versions #9

Closed bokov closed 5 years ago

bokov commented 5 years ago

In Ubuntu 14.04 and presumably earlier, stat -c "%N" returns smart single-quotes (see https://unix.stackexchange.com/q/369657) causing the wireless-info.txt output file to be interpreted as UTF-8. This forces the smart quotes to neutral quotes.

Apparently by 16.04 this is fixed, but since this is a diagnostic script I figured you'd want to have maximum legacy compatibility.

wildmanne39 commented 5 years ago

I have talked this over with several people that are involved with the script including the person that maintains it and we have decided since 12.04 and 14.04 has reached EOL we will leave the script as is, thank you for contacting us and making a patch though.