Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-81876

Number of characters before line cutoff in chat is not same when unicode mode is enabled and when it is off

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Fixed
    • Minecraft 1.8.7, Minecraft 1.8.8, Minecraft 1.8.9, Minecraft 16w05b, Minecraft 1.10.2, Minecraft 1.12.1
    • Minecraft 1.13-pre6
    • None
    • Confirmed

    Description

      The bug

      Number of characters before line cutoff in chat is not same when unicode mode is enabled and when it is off.

      How to reproduce

      1. Enable unicode
      2. Run the following command (to put the maximum length of text on screen):
        /tellraw @p {"text":"12345 12345 12345 12345 12345 12345 12345 12345 12345 12345 12345 12345 12345"}
      3. Disable unicode
      4. Run the command again (to ensure that the two messages have the same number of characters)
        → Notice that the cutoffs are not the same in the identical messages

      I think that the best way to fix this problem is to increase length of text-line when unicode-mode is disabled.

      Code analysis

      Code analysis by __null can be found in this comment.

      Attachments

        1. unicode-on.png
          unicode-on.png
          1023 kB
        2. unicode-off.png
          unicode-off.png
          1011 kB

        Issue Links

          Activity

            People

              dinnerbone [Mojang] Nathan Adams
              fromgate fromgate
              Votes:
              6 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                CHK: