<div dir="ltr"><div><div><div>Hi, <br><br></div>I kind of fixed my problem, but I share it there in case it can help others.<br><br></div>I had problems with sparkleshare on my freeIPA-enrolled workstation, e.g. I got <br></div><div>error messages like this:<br></div><div><div><div><div><br>19:04:52 | Cmd | QB_resources | git ls-remote --heads --exit-code "ssh://xxxl@yyyy/secure/sparkleshare/resources" master<br>19:04:52 | Git | projects | (Wed Sep  9 19:04:52:432246 2015) [/usr/bin/sss_ssh_knownhostsproxy] [main] (0x0020): set_locale() failed (5): Input/output error<br><br></div><div>I went to see the source code of sss_ssh_knownhostsproxy, and it seems that the problem comes from these lines:<br>   c = setlocale(LC_ALL, "");<br>    if (c == NULL) {<br>        return EIO;<br>    }<br><br></div><div>According to "man setlocale()", this is perfectly good:<br><br>>        On startup of the main program, the portable "C" locale is selected as default.  A program may be made portable to all locales by calling:<br>>           setlocale(LC_ALL, "");<br></div><div> and <br>> For glibc, first (regardless of<br> >      category), the environment variable LC_ALL is inspected, next the environment variable with the same name as the  category  (LC_COLLATE,  LC_CTYPE,  LC_MESSAGES,  LC_MONETARY,  LC_NUMERIC,<br> >      LC_TIME) and finally the environment variable LANG.  The first existing environment variable is used.  If its value is not a valid locale specification, the locale is unchanged, and setlo‐<br> >      cale() returns NULL.<br><br></div><div>In my case, apparently setlocate() returns NULL. I could not reproduce this setlocale() call by myself, event trying to use the environment of the sparkleshare process (which by the way is a mono program).<br><br></div><div>But I noticed that running sparkleshare as followed fixed the problem:<br>   LC_ALL="en_US.UTF-8" mono "/usr/lib/sparkleshare/SparkleShare.exe"<br><br></div><div>So I just edited my /etc/default/locale to permanently fix my problem. <br></div><div>Nonetheless, I'd be curious the understand why the setlocale() call fails when sss_ssh_knownhostsproxy is called via git via sparkleshare (via mono).<br><br></div><div>Regards,<br></div><div>Karl Forner<br></div></div></div></div></div>