Loading ...
Sorry, an error occurred while loading the content.

[BUG] String with byte "\x85" matches '[\u0085]'

Expand Messages
  • ZyX
    String with byte x85 matches [ u0085] , while u0085 is actually a xC2 x85 . Tested on vim-7.3 from Gentoo repositories and vim revision fae782ef63dd.
    Message 1 of 3 , Oct 3, 2010
    • 0 Attachment
      String with byte "\x85" matches '[\u0085]', while "\u0085" is actually a
      "\xC2\x85". Tested on vim-7.3 from Gentoo repositories and vim revision
      fae782ef63dd. Test command:
      vim -u NONE --cmd 'set encoding=utf-8' \
      -c 'echo "\x85"=~#''[\u0085]''' \
      -c 'qa!'
      should echo 0, but echoes 1.
    • ZyX
      Ответ на сообщение «[BUG] String with byte x85 matches [ u0085] », присланное в 15:39:27 03 октября 2010,
      Message 2 of 3 , Oct 3, 2010
      • 0 Attachment
        Ответ на сообщение «[BUG] String with byte "\x85" matches '[\u0085]'»,
        присланное в 15:39:27 03 октября 2010, Воскресенье.
        Отправитель: ZyX:

        '\%u0085' is not affected by this: 'echo "\x85"=~#''\%u0085''' echoes 0 as
        expected, 'echo "\xC2\x85"=~#''\%u0085''' echoes 1.

        Текст сообщения:
        > String with byte "\x85" matches '[\u0085]', while "\u0085" is actually a
        > "\xC2\x85". Tested on vim-7.3 from Gentoo repositories and vim revision
        > fae782ef63dd. Test command:
        > vim -u NONE --cmd 'set encoding=utf-8' \
        > -c 'echo "\x85"=~#''[\u0085]''' \
        > -c 'qa!'
        > should echo 0, but echoes 1.
      • Bram Moolenaar
        ... Strange, without the [] it works OK. -- hundred-and-one symptoms of being an internet addict: 242. You turn down a better-paying job because it doesn t
        Message 3 of 3 , Oct 3, 2010
        • 0 Attachment
          ZyX wrote:

          > String with byte "\x85" matches '[\u0085]', while "\u0085" is actually a
          > "\xC2\x85". Tested on vim-7.3 from Gentoo repositories and vim revision
          > fae782ef63dd. Test command:
          > vim -u NONE --cmd 'set encoding=utf-8' \
          > -c 'echo "\x85"=~#''[\u0085]''' \
          > -c 'qa!'
          > should echo 0, but echoes 1.

          Strange, without the [] it works OK.

          --
          hundred-and-one symptoms of being an internet addict:
          242. You turn down a better-paying job because it doesn't come with
          a free e-mail account.

          /// Bram Moolenaar -- Bram@... -- http://www.Moolenaar.net \\\
          /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
          \\\ download, build and distribute -- http://www.A-A-P.org ///
          \\\ help me help AIDS victims -- http://ICCF-Holland.org ///

          --
          You received this message from the "vim_dev" maillist.
          Do not top-post! Type your reply below the text you are replying to.
          For more information, visit http://www.vim.org/maillist.php
        Your message has been successfully submitted and would be delivered to recipients shortly.