[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#264615: Norwegian characters not allowed in hostname.



retitle 264615 Please be clearer about allowed characters for hostnames
reassign 264615 base-config
severity 264615 wishlist
tags 264615 patch
thanks

Quoting Petter Reinholdtsen (pere@hungry.com):
> [Klaus Ade Johnstad]
> > I tried setting my hostname to something including the 3 special
> > Norwegian characters, and was told that the hostname was invalid (no
> > surprise there), with the explanation that the hostname could only
> > contain alphanumeric characters and the minussign.
> > 
> > Clearly the 3 special Norwegian character are alphanumeric characters,
> > and the error message is misleading, and should say something to that
> > affect.
> 
> The error message should probably mention the ASCII letters a to z,
> the ascii minus sign and the latin digits 0-9, as this is the valid
> characters list of characters for host names.  Should it mention lower
> case as well?
> 
> Special national letters like æøå, and special national digits like
> the arabic numbers, are not allowed even if the are "alphanumeric
> characters".


This pertains to base-config, if my memory is still correct.

As Petter sugest, some rewrite of the debconf templates should make
them clearer.

Not knowing the current status of D-i ? I just tag this bug properly
and attach a patch.





--- templates	2004-06-23 20:05:28.000000000 +0200
+++ templates.new	2004-08-15 09:01:30.000000000 +0200
@@ -68,8 +68,9 @@
 Type: note
 _Description: Invalid hostname "${HOSTNAME}"
  A valid hostname may contain period-separated parts containing only
- alphanumeric characters and the minus sign, be between 2 and 63
- characters long, and each part cannot begin or end with a minus sign.
+ lowercase ASCII characters (a-z), the minus sign and numbers (0-9),
+ be between 2 and 63 characters long, and each part cannot begin or
+ end with a minus sign.
 
 Template: base-config/start-display-manager
 Type: boolean

Reply to: