| To: vim-dev@vim.org |
| Subject: Patch 7.0.053 |
| Fcc: outbox |
| From: Bram Moolenaar <Bram@moolenaar.net> |
| Mime-Version: 1.0 |
| Content-Type: text/plain; charset=ISO-8859-1 |
| Content-Transfer-Encoding: 8bit |
| |
| |
| Patch 7.0.053 |
| Problem: Shortening a directory name may fail when there are multi-byte |
| characters. |
| Solution: Copy the correct bytes. (Titov Anatoly) |
| Files: src/misc1.c |
| |
| |
| |
| |
| |
| *** 4492,4498 **** |
| int l = mb_ptr2len(s); |
| |
| while (--l > 0) |
| ! *d++ = *s++; |
| } |
| # endif |
| } |
| --- 4492,4498 ---- |
| int l = mb_ptr2len(s); |
| |
| while (--l > 0) |
| ! *d++ = *++s; |
| } |
| # endif |
| } |
| |
| |
| |
| *** 668,669 **** |
| --- 668,671 ---- |
| { /* Add new patch number below this line */ |
| + /**/ |
| + 53, |
| /**/ |
| |
| -- |
| hundred-and-one symptoms of being an internet addict: |
| 150. You find yourself counting emoticons to get to sleep. |
| |
| /// Bram Moolenaar -- Bram@Moolenaar.net -- 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 /// |