Issue 112896 - Unicode characters in a filename at the templates site are truncated
Summary: Unicode characters in a filename at the templates site are truncated
Alias: None
Product: extensions
Classification: Extensions
Component: www (show other issues)
Version: current
Hardware: Unknown All
: P3 Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
Depends on:
Reported: 2010-07-02 18:56 UTC by fyva
Modified: 2017-05-20 11:33 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Note You need to log in before you can comment on or make changes to this issue.
Description fyva 2010-07-02 18:56:00 UTC
The first unicode characters in a filename are truncated at . For example if the file name is
"ффф_ццц.ott", after uploading to the templates site it is altered to "_ццц.ott".

For example, see here:
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 2010-07-05 10:51:28 UTC
Comment 2 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:

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

Hope it works better now, without breaking something...
Comment 3 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
Comment 5 helenrussian 2010-07-19 11:26:26 UTC
Thank you.

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
Comment 7 fyva 2010-10-26 08:15:11 UTC
Comment 8 Marcus 2017-05-20 11:33:20 UTC
Reset assigne to the default "".