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 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
1=== modified file 'NuxGraphics/GraphicsDisplayX11.cpp'
2--- NuxGraphics/GraphicsDisplayX11.cpp 2013-05-24 18:09:30 +0000
3+++ NuxGraphics/GraphicsDisplayX11.cpp 2013-08-28 18:04:22 +0000
4@@ -1636,8 +1636,8 @@
5 delete[] m_pEvent->dtext;
6 m_pEvent->dtext = nullptr;
7
8- num_char_stored = XmbLookupString(m_xim_controller->GetXIC(), &xevent.xkey, nullptr,
9- 0, (KeySym*) &m_pEvent->x11_keysym, nullptr);
10+ num_char_stored = XmbLookupString(m_xim_controller->GetXIC(), &xevent.xkey, buffer,
11+ NUX_EVENT_TEXT_BUFFER_SIZE, (KeySym*) &m_pEvent->x11_keysym, nullptr);
12
13 if (num_char_stored > 0)
14 {

Subscribers

People subscribed via source and target branches

to all changes: