|
Karsten Hopp |
9b9b87 |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
9b9b87 |
Subject: Patch 7.3.886
|
|
Karsten Hopp |
9b9b87 |
Fcc: outbox
|
|
Karsten Hopp |
9b9b87 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
9b9b87 |
Mime-Version: 1.0
|
|
Karsten Hopp |
9b9b87 |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
9b9b87 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
9b9b87 |
------------
|
|
Karsten Hopp |
9b9b87 |
|
|
Karsten Hopp |
9b9b87 |
Patch 7.3.886
|
|
Karsten Hopp |
9b9b87 |
Problem: Can't build with multi-byte on Solaris 10.
|
|
Karsten Hopp |
9b9b87 |
Solution: Add #ifdef X_HAVE_UTF8_STRING. (Laurent Blume)
|
|
Karsten Hopp |
9b9b87 |
Files: src/ui.c
|
|
Karsten Hopp |
9b9b87 |
|
|
Karsten Hopp |
9b9b87 |
|
|
Karsten Hopp |
9b9b87 |
*** ../vim-7.3.885/src/ui.c 2013-03-13 17:50:20.000000000 +0100
|
|
Karsten Hopp |
9b9b87 |
--- src/ui.c 2013-04-12 12:24:10.000000000 +0200
|
|
Karsten Hopp |
9b9b87 |
***************
|
|
Karsten Hopp |
9b9b87 |
*** 1458,1464 ****
|
|
Karsten Hopp |
9b9b87 |
|
|
Karsten Hopp |
9b9b87 |
int
|
|
Karsten Hopp |
9b9b87 |
clip_gen_owner_exists(cbd)
|
|
Karsten Hopp |
9b9b87 |
! VimClipboard *cbd;
|
|
Karsten Hopp |
9b9b87 |
{
|
|
Karsten Hopp |
9b9b87 |
#ifdef FEAT_XCLIPBOARD
|
|
Karsten Hopp |
9b9b87 |
# ifdef FEAT_GUI_GTK
|
|
Karsten Hopp |
9b9b87 |
--- 1458,1464 ----
|
|
Karsten Hopp |
9b9b87 |
|
|
Karsten Hopp |
9b9b87 |
int
|
|
Karsten Hopp |
9b9b87 |
clip_gen_owner_exists(cbd)
|
|
Karsten Hopp |
9b9b87 |
! VimClipboard *cbd UNUSED;
|
|
Karsten Hopp |
9b9b87 |
{
|
|
Karsten Hopp |
9b9b87 |
#ifdef FEAT_XCLIPBOARD
|
|
Karsten Hopp |
9b9b87 |
# ifdef FEAT_GUI_GTK
|
|
Karsten Hopp |
9b9b87 |
***************
|
|
Karsten Hopp |
9b9b87 |
*** 2134,2140 ****
|
|
Karsten Hopp |
9b9b87 |
text_prop.encoding = *type;
|
|
Karsten Hopp |
9b9b87 |
text_prop.format = *format;
|
|
Karsten Hopp |
9b9b87 |
text_prop.nitems = len;
|
|
Karsten Hopp |
9b9b87 |
! #ifdef FEAT_MBYTE
|
|
Karsten Hopp |
9b9b87 |
if (*type == utf8_atom)
|
|
Karsten Hopp |
9b9b87 |
status = Xutf8TextPropertyToTextList(X_DISPLAY, &text_prop,
|
|
Karsten Hopp |
9b9b87 |
&text_list, &n_text);
|
|
Karsten Hopp |
9b9b87 |
--- 2134,2140 ----
|
|
Karsten Hopp |
9b9b87 |
text_prop.encoding = *type;
|
|
Karsten Hopp |
9b9b87 |
text_prop.format = *format;
|
|
Karsten Hopp |
9b9b87 |
text_prop.nitems = len;
|
|
Karsten Hopp |
9b9b87 |
! #if defined(FEAT_MBYTE) && defined(X_HAVE_UTF8_STRING)
|
|
Karsten Hopp |
9b9b87 |
if (*type == utf8_atom)
|
|
Karsten Hopp |
9b9b87 |
status = Xutf8TextPropertyToTextList(X_DISPLAY, &text_prop,
|
|
Karsten Hopp |
9b9b87 |
&text_list, &n_text);
|
|
Karsten Hopp |
9b9b87 |
***************
|
|
Karsten Hopp |
9b9b87 |
*** 2196,2203 ****
|
|
Karsten Hopp |
9b9b87 |
default: type = XA_STRING;
|
|
Karsten Hopp |
9b9b87 |
}
|
|
Karsten Hopp |
9b9b87 |
#ifdef FEAT_MBYTE
|
|
Karsten Hopp |
9b9b87 |
! if (type == utf8_atom && !enc_utf8)
|
|
Karsten Hopp |
9b9b87 |
! /* Only request utf-8 when 'encoding' is utf8. */
|
|
Karsten Hopp |
9b9b87 |
continue;
|
|
Karsten Hopp |
9b9b87 |
#endif
|
|
Karsten Hopp |
9b9b87 |
success = MAYBE;
|
|
Karsten Hopp |
9b9b87 |
--- 2196,2208 ----
|
|
Karsten Hopp |
9b9b87 |
default: type = XA_STRING;
|
|
Karsten Hopp |
9b9b87 |
}
|
|
Karsten Hopp |
9b9b87 |
#ifdef FEAT_MBYTE
|
|
Karsten Hopp |
9b9b87 |
! if (type == utf8_atom
|
|
Karsten Hopp |
9b9b87 |
! # if defined(X_HAVE_UTF8_STRING)
|
|
Karsten Hopp |
9b9b87 |
! && !enc_utf8
|
|
Karsten Hopp |
9b9b87 |
! # endif
|
|
Karsten Hopp |
9b9b87 |
! )
|
|
Karsten Hopp |
9b9b87 |
! /* Only request utf-8 when 'encoding' is utf8 and
|
|
Karsten Hopp |
9b9b87 |
! * Xutf8TextPropertyToTextList is available. */
|
|
Karsten Hopp |
9b9b87 |
continue;
|
|
Karsten Hopp |
9b9b87 |
#endif
|
|
Karsten Hopp |
9b9b87 |
success = MAYBE;
|
|
Karsten Hopp |
9b9b87 |
*** ../vim-7.3.885/src/version.c 2013-04-12 12:18:43.000000000 +0200
|
|
Karsten Hopp |
9b9b87 |
--- src/version.c 2013-04-12 12:25:44.000000000 +0200
|
|
Karsten Hopp |
9b9b87 |
***************
|
|
Karsten Hopp |
9b9b87 |
*** 730,731 ****
|
|
Karsten Hopp |
9b9b87 |
--- 730,733 ----
|
|
Karsten Hopp |
9b9b87 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
9b9b87 |
+ /**/
|
|
Karsten Hopp |
9b9b87 |
+ 886,
|
|
Karsten Hopp |
9b9b87 |
/**/
|
|
Karsten Hopp |
9b9b87 |
|
|
Karsten Hopp |
9b9b87 |
--
|
|
Karsten Hopp |
9b9b87 |
hundred-and-one symptoms of being an internet addict:
|
|
Karsten Hopp |
9b9b87 |
149. You find your computer sexier than your girlfriend
|
|
Karsten Hopp |
9b9b87 |
|
|
Karsten Hopp |
9b9b87 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
9b9b87 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
9b9b87 |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
9b9b87 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|