On Tue, 12 Sep 2000, Markus Kuhn wrote:
> but far more significantly, the file c2.txt had after the
> wide "a" (ef bd 81) each time a combining character, which got dropped
> during the select & paste.
The attached patch fixes this.
--
Robert
--- button.c~ Tue Sep 12 12:53:07 2000
+++ button.c Tue Sep 12 17:11:18 2000
@@ -2354,6 +2354,13 @@
*/
if (c == HIDDEN_CHAR && iswide(previous)) {
previous = c;
+ /* Combining characters attached to doublewide characters
+ are in memory attached to the HIDDEN_CHAR */
+ if (c_1) {
+ lp = convertToUTF8(lp, c_1);
+ if (c_2)
+ lp = convertToUTF8(lp, c_2);
+ }
continue;
}
previous = c;