volumio / volumio3-os

GNU General Public License v2.0
55 stars 38 forks source link

hostname wrong with umlaut #52

Closed dflvunoooooo closed 1 year ago

dflvunoooooo commented 1 year ago

If I choose in the onboarding process a hostname with an ä ö or ü, the hostname is not set correctly. The umlaut is simply omitted, but the gui is displaying the expected hostname with the umlaut.

Screenshot_20220912_154916

On the other hand, cat /etc/hostname results volumio-kche.

ashthespy commented 1 year ago

On the other hand, cat /etc/hostname results volumio-kche.

See https://github.com/volumio/Volumio2/issues/253 and https://github.com/volumio/Volumio2/pull/1530#issuecomment-383507205 for some history.

But, this issue belongs in /volumio/volumio3-backend where the code to write the player name to the host file resides. Technically, if you use IDNA's ASCII representation ( Volumio-Küche ==> xn--volumio-kche-llb) in /etc/hostname should work as expected.