Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-76537

Encoding problem in month names on Windows server

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.1, 4.1.1
    • 4.1.2
    • Calendar, Language
    • MOODLE_401_STABLE
    • MOODLE_401_STABLE
    • MDL-76537_401
    • Hide

      In a perfect world

      1. Ideally, run tests under both linux and windows. Although they have been already run (see the results some comments below).

      Behat tests

      1. Ensure that your config.php file has the following, so the test is executed, not skipped:

        $CFG->skiplangupgrade = false;
        define('TOOL_LANGIMPORT_REMOTE_TESTS', true);
        

      2. Init behat.
      3. Run the 'Verify that the day and month names are displayed using UTF-8' feature (using the --name option).
      4. Verify that it ends with FOUR scenarios passed (not skipped).
      Show
      In a perfect world Ideally, run tests under both linux and windows. Although they have been already run (see the results some comments below ). Behat tests Ensure that your config.php file has the following, so the test is executed, not skipped: $CFG->skiplangupgrade = false; define('TOOL_LANGIMPORT_REMOTE_TESTS', true); Init behat. Run the 'Verify that the day and month names are displayed using UTF-8' feature (using the --name option). Verify that it ends with FOUR scenarios passed (not skipped).

    Description

      Steps to reproduce:

      1. Install Moodle 4.1 on a Windows machine (e.g. package available here https://download.moodle.org/windows/)
      2. Install the french lang pack
      3. Set the preferred language of a user as French
      4. Login as this user
      5. Got to the dashboard
      6. Observe that month names with diacriticals (e.g "D├ęcembre") are garbled.

      Expected behaviour: months names with diacriticals should display correctly.

      See https://moodle.org/mod/forum/discuss.php?d=441070 for discussion.

      Maybe a regression introduced by MDL-76470.

      Attachments

        1. About User_en.PNG
          About User_en.PNG
          14 kB
        2. About User_ru.PNG
          About User_ru.PNG
          16 kB
        3. About User_uz.PNG
          About User_uz.PNG
          15 kB
        4. Calendar_en.PNG
          Calendar_en.PNG
          11 kB
        5. Calendar_ru.PNG
          Calendar_ru.PNG
          11 kB
        6. Calendar_uz.PNG
          Calendar_uz.PNG
          10 kB
        7. french_calendar.png
          french_calendar.png
          93 kB
        8. Notify_en.PNG
          Notify_en.PNG
          19 kB
        9. Notify_ru.PNG
          Notify_ru.PNG
          15 kB
        10. Notify_uz.PNG
          Notify_uz.PNG
          20 kB
        11. russian_calendar.png
          russian_calendar.png
          89 kB

        Issue Links

          Activity

            People

              stronk7 Eloy Lafuente (stronk7)
              mina Nicolas Martignoni
              Paul Holden Paul Holden
              Jun Pataleta Jun Pataleta
              Jun Pataleta Jun Pataleta
              Votes:
              8 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                13/Mar/23

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 5 hours, 27 minutes
                  5h 27m