Skip site navigation (1)Skip section navigation (2)
Date:      17 Dec 2002 13:05:29 -0500
From:      Joe Marcus Clarke <marcus@FreeBSD.org>
To:        FreeBSD GNOME Users <gnome@FreeBSD.org>
Subject:   Fix for copy and paste from Mozilla to Evo
Message-ID:  <1040148329.82897.15.camel@gyros>

next in thread | raw e-mail | index | archive | help

--=-A3q01bcpes2SqGm2SY+6
Content-Type: multipart/mixed; boundary="=-YxiOFr+OdXF5rRPB5dUW"


--=-YxiOFr+OdXF5rRPB5dUW
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

Here is a patch that fixes the copy and paste problem.  It applies to
gtkhtml.  I'm not sure this is the best solution, but it's better than
what I had previously.  Please let me know if it works for you.

Joe

--=20
Joe Marcus Clarke
FreeBSD GNOME Team	::	marcus@FreeBSD.org
http://www.FreeBSD.org/gnome



--=-YxiOFr+OdXF5rRPB5dUW
Content-Disposition: attachment; filename=patch-src_gtkhtml.c
Content-Transfer-Encoding: quoted-printable
Content-Type: text/x-c; name=patch-src_gtkhtml.c; charset=ISO8859-1

--- src/gtkhtml.c.orig	Tue Nov  5 15:56:58 2002
+++ src/gtkhtml.c	Tue Dec 17 12:29:33 2002
@@ -1653,9 +1653,9 @@
 	be =3D swap ? be : !be;=09
=20
 	if (be)
-		return "ucs2-be";
+		return "ucs-2be";
 	else=20
-		return "ucs2-le";
+		return "ucs-2le";
 =09
 }
=20
@@ -1733,7 +1733,7 @@
 			html_object_save (selection_object, state);
 		=09
 			d_s (g_warning ("text/html buffer =3D %s", buffer->str);)
-			selection_string =3D e_utf8_to_charset_string_sized ("ucs2", buffer->st=
r, buffer->len);
+			selection_string =3D e_utf8_to_charset_string_sized ("ucs-2", buffer->s=
tr, buffer->len);
 		=09
 			if (selection_string)
 				gtk_selection_data_set (selection_data,
@@ -1897,11 +1897,11 @@
 					len  -=3D 2;
 					break;
 				default:
-					tocode =3D "ucs2";
+					tocode =3D ucs2_order(1);
 					break;
 				}
 			=09
-				utf8 =3D e_utf8_from_charset_string_sized ("ucs2",
+				utf8 =3D e_utf8_from_charset_string_sized (tocode,
 									 data,
 									 len);
=20

--=-YxiOFr+OdXF5rRPB5dUW--

--=-A3q01bcpes2SqGm2SY+6
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (FreeBSD)

iD8DBQA9/2dpb2iPiv4Uz4cRAqytAJ4rA1GkVBCqZqwDv2rv0l+0s91b+gCeOcTE
zE4IcIIOJ6gI6jyLH8TM5tw=
=8PrY
-----END PGP SIGNATURE-----

--=-A3q01bcpes2SqGm2SY+6--

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-gnome" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1040148329.82897.15.camel>