From owner-freebsd-gnome Tue Dec 17 12:55:16 2002 Delivered-To: freebsd-gnome@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3FBBD37B401 for ; Tue, 17 Dec 2002 12:55:14 -0800 (PST) Received: from creme-brulee.marcuscom.com (rdu57-17-158.nc.rr.com [66.57.17.158]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4A31E43E4A for ; Tue, 17 Dec 2002 12:55:13 -0800 (PST) (envelope-from marcus@FreeBSD.org) Received: from gyros.marcuscom.com (vpn-client-4.marcuscom.com [10.2.1.4]) by creme-brulee.marcuscom.com (8.12.6/8.12.6) with ESMTP id gBHKsU3e046916 for ; Tue, 17 Dec 2002 15:54:32 -0500 (EST) (envelope-from marcus@FreeBSD.org) Received: from gyros.marcuscom.com (localhost [127.0.0.1]) by gyros.marcuscom.com (8.12.6/8.12.6) with ESMTP id gBHI5TvX084679 for ; Tue, 17 Dec 2002 13:05:29 -0500 (EST) (envelope-from marcus@FreeBSD.org) Received: (from marcus@localhost) by gyros.marcuscom.com (8.12.6/8.12.6/Submit) id gBHI5T2v084678 for gnome@freebsd.org; Tue, 17 Dec 2002 13:05:29 -0500 (EST) X-Authentication-Warning: gyros.marcuscom.com: marcus set sender to marcus@FreeBSD.org using -f Subject: Fix for copy and paste from Mozilla to Evo From: Joe Marcus Clarke To: FreeBSD GNOME Users Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-A3q01bcpes2SqGm2SY+6" Organization: FreeBSD, Inc. Message-Id: <1040148329.82897.15.camel@gyros> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.0 Date: 17 Dec 2002 13:05:29 -0500 X-Spam-Status: No, hits=-0.5 required=5.0 tests=AWL,NOSPAM_INC,PGP_SIGNATURE_2,SPAM_PHRASE_00_01, X_AUTH_WARNING version=2.43 Sender: owner-freebsd-gnome@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --=-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