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

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

      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.

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

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

              Created:
              Updated:
              Resolved:
              CHK: