Issue 112896

Summary: Unicode characters in a filename at the templates site are truncated
Product: extensions Reporter: fyva <menenem>
Component: wwwAssignee: AOO issues mailing list <issues>
Status: CONFIRMED --- QA Contact:
Severity: Trivial    
Priority: P3 CC: b.osi.ooo, issues, issues
Version: current   
Target Milestone: ---   
Hardware: Unknown   
OS: All   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---

Description fyva 2010-07-02 18:56:00 UTC
The first unicode characters in a filename are truncated at
http://templates.services.openoffice.org . For example if the file name is
"ффф_ццц.ott", after uploading to the templates site it is altered to "_ццц.ott".

For example, see here: http://templates.services.openoffice.org/ru/node/4187
In this example the original filename was "Спецификация.ott", but, after
uploading, the part before the first separator (the dot) was omitted and it
turned to "ott". If the first character were "_" ("_Спецификация.ott"), then the
filename is not changed after uploading to the site.
Comment 1 b.osi.ooo 2010-07-05 10:51:28 UTC
started
Comment 2 b.osi.ooo 2010-07-18 20:18:56 UTC
The good on this is, that the filedownload works :-)

Culprint is in drupal: file_check_upload() which uses basename()
Known issue: http://drupal.org/node/278425

Workarounded by setting setlocale(LC_ALL, 'en_US.UTF8');

Hope it works better now, without breaking something...
Comment 3 b.osi.ooo 2010-07-18 20:23:07 UTC
Please verify and close if it works;

I tested with "Спецификация.ott" document:
- upload preserves filename
- download is with the uploaded filename
- delete of file also works
Comment 4 fyva 2010-07-19 06:31:26 UTC
verified
Comment 5 helenrussian 2010-07-19 11:26:26 UTC
Thank you.

Close.
Comment 6 fyva 2010-10-26 08:14:04 UTC
The issue still occurs. I just uploaded a new extension with filename "Текст по
кругу.otg", and it was converted to " по кругу.otg" (see
http://templates.services.openoffice.org/ru/node/4735)
Comment 7 fyva 2010-10-26 08:15:11 UTC
reassigned
Comment 8 Marcus 2017-05-20 11:33:20 UTC
Reset assigne to the default "issues@openoffice.apache.org".