-
Bug
-
Resolution: Fixed
-
Minor
-
3.1.4, 3.2, 3.3
-
MOODLE_31_STABLE, MOODLE_32_STABLE, MOODLE_33_STABLE
-
MOODLE_32_STABLE, MOODLE_33_STABLE
-
MDL-59005-master -
Reproducible on 3.1.4 (release) and 3.4 (development). Probably affects all other versions.
Steps to reproduce:
- Install Russian language pack (one for 3.4 was not yet available at the time of submitting this issue so I used one from 3.1.4 for both versions).
- Switch Moodle language to Russian. It is required because user language is used in a last resort technique of guessing the encoding of file names in the zip archive.
- Create a course with directory activity and start editing its files.
- Upload an attached zip archive to the folder. This archive contains the file named in Russian, using Cyrillic characters. Alternatively, you can create zip file on Russian version of Windows (one that uses CP-1251 as default code page) using Windows Explorer "Compressed (zip) Folders" feature. Similar archive could be created using 7zip on Windows and even on Linux using 7zip + Wine (Russian language and CP-1251 encoding are required here too).
- Click on the uploaded archive in the Moodle UI and press unzip button.
What I expected:
- An unpacked directory contains files with the same names I saw when I added them to archive.
What actually happens:
- An unpacked directory contains files, but Russian file name is displayed in wrong encoding. The screenshots are attached.
The similar issue for Hebrew is MDL-35795.
The proposed fix:
https://github.com/vvzh/moodle/compare/590292d...MDL-59005-cyrillic-zip-fix