~ubuntu-branches/ubuntu/lucid/mysql-dfsg-5.1/lucid-security

« back to all changes in this revision

Viewing changes to cmd-line-utils/readline/text.c

  • Committer: Package Import Robot
  • Author(s): Marc Deslauriers
  • Date: 2012-02-22 22:33:55 UTC
  • mto: (1.2.1) (37.1.1 lucid-security)
  • mto: This revision was merged to the branch mainline in revision 36.
  • Revision ID: package-import@ubuntu.com-20120222223355-ku1tb4r70osci6v2
Tags: upstream-5.1.61
ImportĀ upstreamĀ versionĀ 5.1.61

Show diffs side-by-side

added added

removed removed

Lines of Context:
614
614
#ifdef HANDLE_MULTIBYTE
615
615
static char pending_bytes[MB_LEN_MAX];
616
616
static int pending_bytes_length = 0;
617
 
static mbstate_t ps = {0};
 
617
static mbstate_t ps;
618
618
#endif
619
619
 
620
620
/* Insert the character C at the current location, moving point forward.
811
811
  int i;
812
812
#if defined (HANDLE_MULTIBYTE)
813
813
  char mbkey[MB_LEN_MAX];
814
 
  int k;
815
814
 
816
815
  /* Read an entire multibyte character sequence to insert COUNT times. */
817
816
  if (count > 0 && MB_CUR_MAX > 1 && rl_byte_oriented == 0)
818
 
    k = _rl_read_mbstring (c, mbkey, MB_LEN_MAX);
 
817
    _rl_read_mbstring (c, mbkey, MB_LEN_MAX);
819
818
#endif
820
819
 
821
820
  rl_begin_undo_group ();