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

    • Type: Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: Minecraft 1.8.7, Minecraft 1.8.8, Minecraft 1.8.9, Minecraft 16w05b, Minecraft 1.10.2, Minecraft 1.12.1
    • Fix Version/s: Minecraft 1.13-pre6
    • Labels:
      None
    • Confirmation Status:
      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 [Mod] null can be found in this comment.

        Attachments

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

          Issue Links

            Activity

              People

              • Assignee:
                dinnerbone [Mojang] Nathan Adams
                Reporter:
                fromgate fromgate
              • Votes:
                6 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  CHK: