vte r1530 - in trunk: . src



Author: cpwilson
Date: 2007-01-25 16:49:45 +0000 (Thu, 25 Jan 2007)
New Revision: 1530
ViewCVS link: http://svn.gnome.org/viewcvs/vte?rev=1530&view=rev

Modified:
   trunk/ChangeLog
   trunk/src/vteaccess.c
Log:
2007-01-25  Chris Wilson <chris chris-wilson co uk>

	Bug 399137 â UTF-8 problem in VteAccess

	Improve the UTF-8 string handling within vteaccess.c
	A long and fraught history to this apparently simple change.
	Many thanks to Joanmarie Diggs and Rich Burridge for testing the
	patches and ensuring they caused no regressions in the ally interface.

	* src/vteaccess.c: (emit_text_changed_insert),
	(emit_text_changed_delete):
		Use g_utf8_pointer_to_offset() rather than open coding.
	* src/vteaccess.c: (vte_terminal_accessible_text_modified):
		Convert the caret into a byte offset before performing the
		string lookup.
		Iterate backwards over the string using a g_utf8_prev_char,
		and g_utf8_get_char.






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]