Bug 46664 - xscope prints only half the characters in 16-bit strings
xscope prints only half the characters in 16-bit strings
Product: xorg
Classification: Unclassified
Component: App/other
x86-64 (AMD64) FreeBSD
: medium normal
Assigned To: Xorg Project Team
Xorg Project Team
Depends on:
  Show dependency treegraph
Reported: 2012-02-26 19:12 UTC by Peter Jeremy
Modified: 2012-07-08 11:19 UTC (History)
0 users

See Also:
i915 platform:
i915 features:

Patch to prtype.c (600 bytes, patch)
2012-02-26 19:20 UTC, Peter Jeremy
no flags Details | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Jeremy 2012-02-26 19:12:16 UTC

Comment 1 Peter Jeremy 2012-02-26 19:20:01 UTC
Created attachment 57695 [details] [review]
Patch to prtype.c
Comment 2 Peter Jeremy 2012-02-26 19:20:45 UTC
The length fields for PolyText16 and ImageText16 represent the number of 16-bit characters in the request but PrintString16() and PrintTString16() treat the lengths as the number of octets in the string - thus printing only half of the characters.
Comment 3 Alan Coopersmith 2012-07-08 11:19:11 UTC
Thanks for the patch - pushed to git master for next release: