Closed Bug 782761 Opened 13 years ago Closed 13 years ago

MDN needs UTF-8 locale

Categories

(Infrastructure & Operations Graveyard :: WebOps: Other, task)

x86
macOS
task
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: jbennett, Unassigned)

References

Details

MDN is seeing a lot of errors whose tracebacks end in a section like this: > File "/usr/lib64/python2.6/genericpath.py", line 49, in getsize > return os.stat(filename).st_size > > UnicodeEncodeError: 'ascii' codec can't encode characters in position 104-113: > ordinal not in range(128) These come from the fact that we're trying to stat a file with non-ASCII characters in its filename. Supporting such filenames is something we almost certainly need to do. Getting the server on a UTF-8 locale will resolve this.
Severity: normal → major
Blocks: 782770
:ubernostrum - the web heads do appear to be in utf-8 already. [root@developer1.webapp.scl3 ~]# echo $LANG en_US.UTF-8
we're also able to "touch" filenames with UTF-8 characters in the filename... do you have a way we can replicate this?
to be extra certain, i even created and wrote to a file with python. [cturra@developeradm.private.scl3 ~]$ python Python 2.6.6 (r266:84292, May 1 2012, 13:52:17) [GCC 4.4.6 20110731 (Red Hat 4.4.6-3)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> f = open("mÉ2.txt", "wb") >>> f.write("writing to utf-8 file.\n"); >>> f.close() >>> exit() [cturra@developeradm.private.scl3 ~]$ ls mÉ2.txt mÉ.txt
Dropping to normal for now.
Severity: major → normal
:ericz - i have confirmed utf-8 files can be written to disk (both from a term and python shell). is there something else i can review for you on the systems? as far as i can tell, everything is setup properly for utf-8 characters on these servers.
:ericz - i am closing this bug r/wontfix since there is nothing on the web servers i can see that should be stopping utf-8 files from being written. please feel free to reopen if there is something further you would like us to review that i may have missed.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → WONTFIX
Component: Server Operations: Web Operations → WebOps: Other
Product: mozilla.org → Infrastructure & Operations
Product: Infrastructure & Operations → Infrastructure & Operations Graveyard
You need to log in before you can comment on or make changes to this bug.