sudo it?

On Wed, Jul 2, 2014 at 1:42 PM, Fredrik Blomqvist <
[email protected]> wrote:

> Oh. Well I ran that line (localedef, the export works fine but didn't
> improve the situation) and got this:
> cannot open locale archive "/usr/lib/locale/locale-archive": Permission
> denied
>
> Aaaaargh! I'm so sick and tired of OpenShift right now...
>
> Anyway I did discover something interesting:
> If I SSH and then jump into a Python prompt and then do a
> os.stat('filewithunicodename.jpg') it returns successfully. Doesn't that
> mean that something is incorrectly configured in Mezzanine/Django?
>
>
> On Wednesday, July 2, 2014 6:58:36 PM UTC+2, Kenneth Bolton wrote:
>
>> The Fabric scripts are intended to run on Debian-based OS, not ones based
>> on RedHat. The command you seek is, I believe:
>>
>> localedef -c -f UTF-8 -i en_US en_US.UTF-8
>>
>> export LC_ALL=en_US.UTF-8
>>
>>
>>
>> On Wed, Jul 2, 2014 at 12:52 PM, Fredrik Blomqvist <fredrik.bl...@gmail.
>> com> wrote:
>>
>>> I'm sorry Kenneth but I'm at a loss about what to do with those scripts
>>> (or the specific lines you linked?). Something I forgot to mention is that
>>> my app is deployed at OpenShift, but not using Fabric (when I SSH'd in and
>>> tried to run update-locale manually it told me that the command doesn't
>>> exist).
>>>
>>> I checked however and found that no LC_ envars exist (only the LANG one
>>> does). I found a thread on a forum where a guy had some problems with
>>> locales and he solved it by setting "LC_ALL" to his locale (which is what
>>> is happening in the first script I believe).
>>> Could that info be to any help?
>>>
>>>
>>> On Wednesday, July 2, 2014 4:08:57 PM UTC+2, Kenneth Bolton wrote:
>>>
>>>> Hi Fredrik,
>>>>
>>>> Use the Fabric script at https://github.com/stephenmcd/
>>>> mezzanine/blob/master/mezzanine/project_template/fabfile.py#L346-L350
>>>> and https://github.com/stephenmcd/mezzanine/blob/master/mezzanin
>>>> e/project_template/fabfile.py#L389-L391 as a starting points for
>>>> ensuring your locales are correct.
>>>>
>>>> ken
>>>>
>>>>
>>>> On Wed, Jul 2, 2014 at 9:53 AM, Josh Cartmell <[email protected]>
>>>> wrote:
>>>>
>>>>> Generally this is caused by an incorrect locale, if you search the
>>>>> group (I don't remember exactly where the threads are) for locale you
>>>>> should come across a few threads about this, with some instructions on how
>>>>> to fix them.
>>>>>
>>>>>
>>>>> On Wed, Jul 2, 2014 at 6:49 AM, Fredrik Blomqvist <
>>>>> [email protected]> wrote:
>>>>>
>>>>>> As soon as I try to upload an image, or an archive of images, with
>>>>>> names consisting of special characters (eg. é or country specific åäö) it
>>>>>> throws an error. I googled it and read that it may be the LANG setting 
>>>>>> that
>>>>>> is wrong. I checked that however and it is set to en_US.UTF-8.
>>>>>>
>>>>>> I got 2 different tracebacks (very similar though):
>>>>>> http://pastebin.com/q7bLvn9e
>>>>>> http://pastebin.com/DqFtFHcN
>>>>>>
>>>>>> While I could just simply rename the images before I upload them, it
>>>>>> would be awesome if I could skip that and everything just worked as it
>>>>>> should.
>>>>>> Any help is appreciated!
>>>>>>
>>>>>> Regards, Fredrik
>>>>>>
>>>>>> --
>>>>>> You received this message because you are subscribed to the Google
>>>>>> Groups "Mezzanine Users" group.
>>>>>> To unsubscribe from this group and stop receiving emails from it,
>>>>>> send an email to [email protected].
>>>>>>
>>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>>
>>>>>
>>>>>  --
>>>>> You received this message because you are subscribed to the Google
>>>>> Groups "Mezzanine Users" group.
>>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>>> an email to [email protected].
>>>>>
>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>
>>>>
>>>>  --
>>> You received this message because you are subscribed to the Google
>>> Groups "Mezzanine Users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>  --
> You received this message because you are subscribed to the Google Groups
> "Mezzanine Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to