<!-- 
RSS generated by JIRA (9.12.2#9120002-sha1:301bf498dd45d800842af0b84230f1bb58606c13) at Sun Jan 12 12:13:39 UTC 2025

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>Mojang Studios Jira</title>
    <link>https://bugs.mojang.com</link>
    <description>This file is an XML representation of an issue</description>
    <language>en</language>    <build-info>
        <version>9.12.2</version>
        <build-number>9120002</build-number>
        <build-date>10-01-2024</build-date>
    </build-info>


<item>
            <title>[MC-7181] UTF-8 char locks Textbox</title>
                <link>https://bugs.mojang.com/browse/MC-7181</link>
                <project id="10400" key="MC">Minecraft: Java Edition</project>
                    <description>&lt;p&gt;Pasting the char &#65288; in any Textbox will make Text after it invisible. If you set it as World Name you still can use the world, but the Text in the Box is missing. This makes Worlds without Names possible.&lt;br/&gt;
Please note, that the char is not an open parenthese and you need to copy-paste it. The Directory created for the world contains this char and looks regular.&lt;/p&gt;</description>
                <environment>Windows 7 x64; jre 1.7</environment>
        <key id="19960">MC-7181</key>
            <summary>UTF-8 char locks Textbox</summary>
                <type id="1" iconUrl="https://bugs.mojang.com/secure/viewavatar?size=xsmall&amp;avatarId=18903&amp;avatarType=issuetype">Bug</type>
                                    <status id="5" iconUrl="https://bugs.mojang.com/images/icons/statuses/resolved.png" description="A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.">Resolved</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="3">Duplicate</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="ayra">Kevin Gut</reporter>
                        <labels>
                    </labels>
                <created>Fri, 11 Jan 2013 23:49:59 +0100</created>
                <updated>Wed, 3 May 2017 23:30:30 +0200</updated>
                            <resolved>Thu, 17 Dec 2015 19:18:26 +0100</resolved>
                                    <version>Minecraft 1.4.7</version>
                    <version>Minecraft 1.5</version>
                    <version>Minecraft 1.5.1</version>
                    <version>Minecraft 1.6.1</version>
                    <version>Minecraft 1.6.2</version>
                    <version>Minecraft 13w37a</version>
                    <version>Minecraft 1.7.4</version>
                    <version>Minecraft 14w05b</version>
                    <version>Minecraft 14w06b</version>
                    <version>Minecraft 14w07a</version>
                    <version>Minecraft 14w08a</version>
                    <version>Minecraft 1.7.5</version>
                    <version>Minecraft 14w18b</version>
                    <version>Minecraft 1.8.1-pre3</version>
                                                                        <votes>1</votes>
                                    <watches>5</watches>
                                                                            <comments>
                            <comment id="272843" author="bugi74" created="Thu, 17 Dec 2015 19:14:40 +0100"  >&lt;p&gt;Original descriptions are somewhat different, but indeed, the same cause (incorrectly calculated widths) is behind these issues. So yes, a duplicate. (Marcono and I even found the same fix independently.)&lt;/p&gt;</comment>
                            <comment id="272793" author="marcono1234" created="Thu, 17 Dec 2015 16:42:13 +0100"  >&lt;p&gt;Duplicates &lt;a href=&quot;https://bugs.mojang.com/browse/MC-13046&quot; title=&quot; Certain supported characters glitch out, clearing out lines of text.&quot; class=&quot;issue-link&quot; data-issue-key=&quot;MC-13046&quot;&gt;&lt;del&gt;MC-13046&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="205388" author="galaxy_2alex" created="Sat, 25 Oct 2014 16:10:27 +0200"  >&lt;p&gt;Reopened, thanks&lt;/p&gt;</comment>
                            <comment id="205366" author="ayra" created="Sat, 25 Oct 2014 15:36:10 +0200"  >&lt;p&gt;Yes it is still a concern with the newest version&lt;/p&gt;</comment>
                            <comment id="156049" author="garyclosse" created="Tue, 6 May 2014 21:50:22 +0200"  >&lt;p&gt;Confirmed for 14w18b.&lt;/p&gt;</comment>
                            <comment id="143706" author="garyclosse" created="Fri, 28 Feb 2014 23:09:49 +0100"  >&lt;p&gt;Still affects 1.7.4/5 and 1.8&lt;/p&gt;</comment>
                            <comment id="133422" author="galaxy_2alex" created="Wed, 22 Jan 2014 09:04:57 +0100"  >&lt;p&gt;Is this still a concern in the &lt;em&gt;current Minecraft version&lt;/em&gt; &lt;b&gt;1.7.4&lt;/b&gt; / Launcher version &lt;b&gt;1.3.8&lt;/b&gt; or later? If so, please &lt;em&gt;update the affected versions&lt;/em&gt; in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases.&lt;/p&gt;</comment>
                            <comment id="88121" author="bugi74" created="Wed, 10 Jul 2013 13:20:17 +0200"  >&lt;p&gt;Still in 1.6.2&lt;/p&gt;</comment>
                            <comment id="87902" author="ezekielelin" created="Wed, 10 Jul 2013 04:05:21 +0200"  >&lt;p&gt;Is this still a concern in the current Minecraft version? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases.&lt;/p&gt;</comment>
                            <comment id="79942" author="ayra" created="Mon, 1 Jul 2013 21:26:15 +0200"  >&lt;p&gt;Updated the issue, still present in 1.6.1&lt;/p&gt;</comment>
                            <comment id="57486" author="bugi74" created="Wed, 27 Mar 2013 17:58:26 +0100"  >&lt;p&gt;Kevin, I recommend reading my analysis more carefully, or alternately, reading Java language specification. Basically, Java does not have unsigned integer values. The only exception is &apos;char&apos;, which is basically unsigned 16-bit integer with a little bit of unicode related sugar. Unfortunately, as soon as any kind of math/bit-operation is done with such value, it is implicitly converted into 32-bit signed ints, and all kinds of headaches and keyboard throwing contests ensue.&lt;/p&gt;

&lt;p&gt;But yes, using such unsigned integer value would have done the trick.&lt;/p&gt;</comment>
                            <comment id="57436" author="ayra" created="Wed, 27 Mar 2013 09:11:59 +0100"  >&lt;p&gt;instead of int it would be better to use an unsigned int. wouldn&apos;t this solve the problem?&lt;/p&gt;</comment>
                            <comment id="54675" author="bugi74" created="Sun, 17 Mar 2013 20:12:43 +0100"  >&lt;p&gt;&lt;b&gt;Fix&lt;/b&gt;&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeHeader panelHeader&quot; style=&quot;border-bottom-width: 1px;&quot;&gt;&lt;b&gt;FontRenderer.renderUnicodeChar(char c, boolean italic)&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;        ...
        &lt;span class=&quot;code-comment&quot;&gt;//&lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt; startColumn = &lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;.glyphWidth[c] &amp;gt;&amp;gt;&amp;gt; 4;
&lt;/span&gt;        &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt; startColumn = (&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;.glyphWidth[c] &amp;gt;&amp;gt;&amp;gt; 4) &amp;amp; 15; &lt;span class=&quot;code-comment&quot;&gt;// FIX
&lt;/span&gt;        ...
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Tested on 1.4.7, works wonders.&lt;/p&gt;

&lt;p&gt;Reason was that the byte for &apos;glyph width&apos; is handled as unsigned value, whereas Java only does stuff as signed values (except &apos;char&apos; of course) and bit-operations in 32-bit things. Before doing the bitshift (which does have the nice &amp;gt;&amp;gt;&amp;gt; op), it will sign-extend the byte. If the high nibble has large enough value (8..15), it basically means the byte has negative value, and thus the 32-bit integer being shifted is also negative and has 24 extra 1-bits on left. After the shift, such integer value converts into a very large positive value. The start column was thus calculated to be a very, very, very large thing, causing multiple problems, like rendered width to be millions of pixels. (The rest of text was thus way past the visible area.)&lt;/p&gt;

&lt;p&gt;For that particular character used in the description: its codepoint is 65288, glyph width value -100 (or nibbles 9 and 12), and the shifted result for start column 268435449!&lt;/p&gt;</comment>
                            <comment id="54626" author="ayra" created="Sun, 17 Mar 2013 18:47:29 +0100"  >&lt;p&gt;Version 1.5 is still affected&lt;/p&gt;</comment>
                            <comment id="35765" author="ayra" created="Fri, 11 Jan 2013 23:52:23 +0100"  >&lt;p&gt;Textboxexes seem to accept most UTF-8 chars.&lt;/p&gt;</comment>
                            <comment id="35762" author="ayra" created="Fri, 11 Jan 2013 23:50:55 +0100"  >&lt;p&gt;Example of an empty name due to UTF-8 Bug&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10102">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="27973">MC-13046</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="18317" name="UTF-8-Compatible.jpg" size="27866" author="ayra" created="Fri, 11 Jan 2013 23:52:23 +0100"/>
                            <attachment id="18316" name="UTF-8.jpg" size="218732" author="ayra" created="Fri, 11 Jan 2013 23:50:55 +0100"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                <customfield id="customfield_10701" key="com.atlassian.jira.plugin.system.customfieldtypes:datetime">
                        <customfieldname>CHK</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Sun, 17 Mar 2013 20:13:00 +0100</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10500" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Confirmation Status</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10302"><![CDATA[Community Consensus]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_11700" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_11600" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|i0hunr:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                    </customfields>
    </item>
</channel>
</rss>