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

Re: [Libosinfo] [PATCH 1/2] win7, winxp, installer: 'ComputerName' must be <= 15 characters

On Tue, May 13, 2014 at 10:20 AM, Christophe Fergeau
<cfergeau redhat com> wrote:
> On Mon, May 12, 2014 at 04:38:34PM +0100, Zeeshan Ali (Khattak) wrote:
>> Since 'ComputerName' is supposed to be max 15 characters, unattended
>> installation breaks if this is set to a string longer than that. Lets crop the
>> string to ensure that doesn't happen.
>> http://technet.microsoft.com/en-us/library/ff715676.aspx
> This link also lists forbidden characters, I don't think this is
> enforced?

No its not. I didn't bother to enforce that (read below).

> I'm also not sure substring will do the right thing with
> non-ASCII characters, which are potentially encoded as multiple bytes
> (the limit is 15 bytes, not 15 chars).

That is true. Either I go work on my XSLT-foo and enforce this or we
can just document this in set_hostname. Reading this, I'd go for the
latter as non-ASCII won't be acceptable on other OSs either:



Zeeshan Ali (Khattak)
Befriend GNOME: http://www.gnome.org/friends/

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