https://www.ultimatepp.org/redmine/https://www.ultimatepp.org/redmine/redmine/favicon.ico2011-11-07T16:43:10ZRedmineU++ - Bug #153: FrameBuffer rainbow - clipboard seems to only transfer the first letter of texthttps://www.ultimatepp.org/redmine/issues/153?journal_id=3532011-11-07T16:43:10ZMiroslav Fidlercxl@ntllib.org
<ul><li><strong>Priority</strong> changed from <i>Normal</i> to <i>High</i></li></ul> U++ - Bug #153: FrameBuffer rainbow - clipboard seems to only transfer the first letter of texthttps://www.ultimatepp.org/redmine/issues/153?journal_id=3672011-11-08T09:48:01ZSender Ghost
<ul><li><strong>Category</strong> set to <i>Rainbow</i></li></ul><p>I tested it inside <strong>UWord</strong> example for <strong>WinFB</strong> rainbow backend.</p> U++ - Bug #153: FrameBuffer rainbow - clipboard seems to only transfer the first letter of texthttps://www.ultimatepp.org/redmine/issues/153?journal_id=3682011-11-08T09:48:43ZSender Ghost
<ul></ul><p>Not reproduced here.</p> U++ - Bug #153: FrameBuffer rainbow - clipboard seems to only transfer the first letter of texthttps://www.ultimatepp.org/redmine/issues/153?journal_id=3692011-11-08T09:54:37ZSender Ghost
<ul></ul><p>Mistake. Reproduced for <strong>EditString</strong> Ctrl.</p> U++ - Bug #153: FrameBuffer rainbow - clipboard seems to only transfer the first letter of texthttps://www.ultimatepp.org/redmine/issues/153?journal_id=3722011-11-08T17:32:33ZSender Ghost
<ul></ul><p>I found possible <a href="/redmine/projects/upp/repository/revisions/3701/entry/trunk/rainbow/Framebuffer/Clip.cpp#L56">cause</a> of this:<br /><pre><code class="cpp syntaxhl"><span class="CodeRay"><span class="directive">void</span> AppendClipboardUnicodeText(<span class="directive">const</span> WString& s)
{
AppendClipboard(<span class="string"><span class="delimiter">"</span><span class="content">wtext</span><span class="delimiter">"</span></span>, (byte *)~s, <span class="integer">2</span> * s.GetLength());
}
</span></code></pre><br />The input <strong>s</strong> is correct. <code>RLOG(s)</code> returns the string, which was copied.<br />But output is wrong. It contains '\0' character on each even index.</p> U++ - Bug #153: FrameBuffer rainbow - clipboard seems to only transfer the first letter of texthttps://www.ultimatepp.org/redmine/issues/153?journal_id=3762011-11-10T00:49:40ZSender Ghost
<ul><li><strong>File</strong> <a href="/redmine/attachments/download/62/153_rainbow.diff">153_rainbow.diff</a><a href="/redmine/attachments/62/153_rainbow.diff"><img alt="Magnifier" src="/redmine/images/magnifier.png" /></a> added</li><li><strong>Status</strong> changed from <i>New</i> to <i>Patch ready</i></li><li><strong>Assignee</strong> set to <i>Miroslav Fidler</i></li><li><strong>% Done</strong> changed from <i>0</i> to <i>100</i></li></ul><p>Actually, the cause of the problem was in <a href="/redmine/projects/upp/repository/revisions/3701/entry/trunk/rainbow/Framebuffer/Clip.cpp#L144">different place</a>.<br />Also fixed for <strong>WINGL</strong> rainbow backend.</p> U++ - Bug #153: FrameBuffer rainbow - clipboard seems to only transfer the first letter of texthttps://www.ultimatepp.org/redmine/issues/153?journal_id=3802011-11-11T09:18:30ZMiroslav Fidlercxl@ntllib.org
<ul><li><strong>Status</strong> changed from <i>Patch ready</i> to <i>Approved</i></li></ul>