Karsten Hopp 0f5249
To: vim-dev@vim.org
Karsten Hopp 0f5249
Subject: Patch 7.2.001
Karsten Hopp 0f5249
Fcc: outbox
Karsten Hopp 0f5249
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 0f5249
Mime-Version: 1.0
Karsten Hopp 0f5249
Content-Type: text/plain; charset=ISO-8859-1
Karsten Hopp 0f5249
Content-Transfer-Encoding: 8bit
Karsten Hopp 0f5249
------------
Karsten Hopp 0f5249
Karsten Hopp 0f5249
Patch 7.2.001
Karsten Hopp 0f5249
Problem:    Mac: pseudo-ttys don't work properly on Leopard, resulting in the
Karsten Hopp 0f5249
            shell not to have a prompt, CTRL-C not working, etc.
Karsten Hopp 0f5249
Solution:   Don't use SVR4 compatible ptys, even though they are detected.
Karsten Hopp 0f5249
            (Ben Schmidt)
Karsten Hopp 0f5249
Files:      src/pty.c
Karsten Hopp 0f5249
Karsten Hopp 0f5249
Karsten Hopp 0f5249
*** ../vim-7.2.000/src/pty.c	Wed Aug  6 19:04:29 2008
Karsten Hopp 0f5249
--- src/pty.c	Fri Aug 15 04:00:34 2008
Karsten Hopp 0f5249
***************
Karsten Hopp 0f5249
*** 270,278 ****
Karsten Hopp 0f5249
  }
Karsten Hopp 0f5249
  #endif
Karsten Hopp 0f5249
  
Karsten Hopp 0f5249
! #if defined(HAVE_SVR4_PTYS) && !defined(PTY_DONE) && !defined(hpux)
Karsten Hopp 0f5249
  
Karsten Hopp 0f5249
! /* NOTE: Even though HPUX can have /dev/ptmx, the code below doesn't work! */
Karsten Hopp 0f5249
  #define PTY_DONE
Karsten Hopp 0f5249
      int
Karsten Hopp 0f5249
  OpenPTY(ttyn)
Karsten Hopp 0f5249
--- 270,279 ----
Karsten Hopp 0f5249
  }
Karsten Hopp 0f5249
  #endif
Karsten Hopp 0f5249
  
Karsten Hopp 0f5249
! #if defined(HAVE_SVR4_PTYS) && !defined(PTY_DONE) && !defined(hpux) && !defined(MACOS_X)
Karsten Hopp 0f5249
  
Karsten Hopp 0f5249
! /* NOTE: Even though HPUX can have /dev/ptmx, the code below doesn't work!
Karsten Hopp 0f5249
!  * Same for Mac OS X Leopard. */
Karsten Hopp 0f5249
  #define PTY_DONE
Karsten Hopp 0f5249
      int
Karsten Hopp 0f5249
  OpenPTY(ttyn)
Karsten Hopp 0f5249
*** ../vim-7.2.000/src/version.c	Sat Aug  9 19:37:37 2008
Karsten Hopp 0f5249
--- src/version.c	Sun Aug 17 22:56:25 2008
Karsten Hopp 0f5249
***************
Karsten Hopp 0f5249
*** 678,679 ****
Karsten Hopp 0f5249
--- 678,681 ----
Karsten Hopp 0f5249
  {   /* Add new patch number below this line */
Karsten Hopp 0f5249
+ /**/
Karsten Hopp 0f5249
+     1,
Karsten Hopp 0f5249
  /**/
Karsten Hopp 0f5249
Karsten Hopp 0f5249
-- 
Karsten Hopp 0f5249
ARTHUR:       Now stand aside worthy adversary.
Karsten Hopp 0f5249
BLACK KNIGHT: (Glancing at his shoulder) 'Tis but a scratch.
Karsten Hopp 0f5249
ARTHUR:       A scratch?  Your arm's off.
Karsten Hopp 0f5249
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
Karsten Hopp 0f5249
Karsten Hopp 0f5249
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 0f5249
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 0f5249
\\\        download, build and distribute -- http://www.A-A-P.org        ///
Karsten Hopp 0f5249
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///