mudlet-makers team mailing list archive
-
mudlet-makers team
-
Mailing list archive
-
Message #04432
Re: [Bug 1674350] [NEW] Profiles won't install if special characters
Thanks for the bug report. Might be something that'll get handled by the
i18n we're planning to do next like Stephen mentions, so we'll test our
work with that.
On Mon, Mar 20, 2017 at 5:01 PM Stephen Lyons <slysven@xxxxxxxxxxxxxxx>
wrote:
> Is it specifically a leading '$' - I had a vague recollection that
> character has a special meaning as a "special hidden or administrative"
> file name on Windows particularly associated with CIFS. E.G. I think if
> you share the root of your primary hard-drive it is listed as $C .
>
> In the particular case quoted it could also be a *nix environment
> variable and if say Samba was involved the example of
> "/users/$username/.config" sounds like a Bash script trying to write to
> a NTFS drive where $username is a variable that actually represents a
> users name such as "alice" or "bob". On Windo$e Vista and later (I
> think) the users' home directories are typically at C:\users\alice\;
> C:\users\bob\ etc. etc.
>
> Oh, and non ASCII usernames are an issue currently within Mudlet as we
> do not pass anything other than Latin1 characters as
> TLuaInterpreter::getMudletHomeDir(...) uses
>
> lua_pushstring( L, erg.toLatin1().data() );
>
> which breaks on anything not ASCII - changing that to:
>
> lua_pushstring( L, erg.toUTf8().data() );
>
> may offer a fix in that the lua code will then receive the Utf-8 encoded
> characters correctly but whether that will be correctly interpreted by
> the 'Doze file i/o commands is not so clear.
>
> Note that: https://bugs.launchpad.net/mudlet/+bug/1322753
> "getMudletHomeDir() has problems with nonstandard characters in path"
> refers to this issue.
>
> Reply by Email
>
> Stephen
>
> On 20/03/17 14:04, Chris Leacy wrote:
> > Public bug reported:
> >
> > I was aware of this previously: When the package manager unzips, if
> > there's a $ present in the system username the unzip/package install
> > fails. It appears it's not just the presence of a $, it's many special
> > characters.
> >
> > You group-say 'It's going to be the path /users/username/.config'
> > You group-say 'if 'username' has something funky in it that might cause
> problems'
> > You group-say 'Does your windows username have any special characters in
> it?'
> > You group-say 'in particular a dollar sign?'
> > Sobes group-says 'I think that Root profile is named in Russian'
> > Sobes tells you 'yea, username is in win1251 codepage'
> >
> > ** Affects: mudlet
> > Importance: Undecided
> > Status: New
> >
>
> --
> You received this bug notification because you are a member of Mudlet
> Makers, which is subscribed to Mudlet.
> https://bugs.launchpad.net/bugs/1674350
>
> Title:
> Profiles won't install if special characters
>
> Status in Mudlet:
> New
>
> Bug description:
> I was aware of this previously: When the package manager unzips, if
> there's a $ present in the system username the unzip/package install
> fails. It appears it's not just the presence of a $, it's many special
> characters.
>
> You group-say 'It's going to be the path /users/username/.config'
> You group-say 'if 'username' has something funky in it that might cause
> problems'
> You group-say 'Does your windows username have any special characters in
> it?'
> You group-say 'in particular a dollar sign?'
> Sobes group-says 'I think that Root profile is named in Russian'
> Sobes tells you 'yea, username is in win1251 codepage'
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/mudlet/+bug/1674350/+subscriptions
>
> _______________________________________________
> Mailing list: https://launchpad.net/~mudlet-makers
> Post to : mudlet-makers@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~mudlet-makers
> More help : https://help.launchpad.net/ListHelp
>
References