Nux

Merge lp:~brandontschaefer/nux/poke-lookupstring-SRU into lp:nux/2.0

Proposed by Brandon Schaefer
Status: Work in progress
Proposed branch: lp:~brandontschaefer/nux/poke-lookupstring-SRU
Merge into: lp:nux/2.0
Diff against target: 14 lines (+2/-2)
1 file modified
NuxGraphics/GraphicsDisplayX11.cpp (+2/-2)
To merge this branch: bzr merge lp:~brandontschaefer/nux/poke-lookupstring-SRU
Reviewer Review Type Date Requested Status
Brandon Schaefer (community) Disapprove
Christopher Townsend (community) Approve
Review via email: mp+182724@code.launchpad.net

Commit message

Use a temp buf to poke for the size of string vs passing nullptr. For some reason this was working for most cases, but not greek. Using a temp buf allows us to poke the greeks chars and others that werent working.

Description of the change

Use a temp buf to poke for the size of string vs passing nullptr. For some reason this was working for most cases, but not greek. Using a temp buf allows us to poke the greeks chars and others that werent working.

To post a comment you must log in.
Revision history for this message
Christopher Townsend (townsend) wrote :

LGTM +1

review: Approve
Revision history for this message
Brandon Schaefer (brandontschaefer) wrote :

This causes a regression!

review: Disapprove

Unmerged revisions

622. By Brandon Schaefer

* Use a temp buff to poke for the size of the char* from the event.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'NuxGraphics/GraphicsDisplayX11.cpp'
--- NuxGraphics/GraphicsDisplayX11.cpp 2013-05-24 18:09:30 +0000
+++ NuxGraphics/GraphicsDisplayX11.cpp 2013-08-28 18:04:22 +0000
@@ -1636,8 +1636,8 @@
1636 delete[] m_pEvent->dtext;1636 delete[] m_pEvent->dtext;
1637 m_pEvent->dtext = nullptr;1637 m_pEvent->dtext = nullptr;
16381638
1639 num_char_stored = XmbLookupString(m_xim_controller->GetXIC(), &xevent.xkey, nullptr,1639 num_char_stored = XmbLookupString(m_xim_controller->GetXIC(), &xevent.xkey, buffer,
1640 0, (KeySym*) &m_pEvent->x11_keysym, nullptr);1640 NUX_EVENT_TEXT_BUFFER_SIZE, (KeySym*) &m_pEvent->x11_keysym, nullptr);
16411641
1642 if (num_char_stored > 0)1642 if (num_char_stored > 0)
1643 {1643 {

Subscribers

People subscribed via source and target branches

to all changes: