To fix, add `LC_ALL=C` before sed. For example: $ export LC_ALL=ja_JP.UTF-8 $ cat runtime/doc/vim-fr.1 | sed 's/.*//' > /dev/null sed: RE error: illegal byte sequence $ cat runtime/doc/vim-fr.1 | LC_ALL=C sed 's/.*//' > /dev/null $ # no errors Modifying $LC_ALL temporarily fixes the problem.
Of course, in stead of adding LC_ALL before the `sed's, we can add it at more macro level... I mean, before using installman.sh: $ LC_ALL=C /bin/sh ./installman.sh or more globally $ LC_ALL=C sudo make install suppresses the errors of sed. Portability I don't know that which shell supports modifying a variable temporarily. Reference + http://stackoverflow.com/questions/19242275/ + http://stackoverflow.com/questions/11287564/ (Sorry for choosing stackoverflow as references, but it actually works.) On Sunday, June 22, 2014 7:43:19 PM UTC+9, Bram Moolenaar wrote: > Itchyny wrote: > > > > > # Command > > > $ sudo make install > > > > > > # On > > > Mac OS X > > > Vim the latest > > > > > > # Produces sed errors > > > /bin/sh ./installman.sh install /usr/local/share/man/fr/man1 "-fr" > > /usr/local/share/vim /usr/local/share/vim/vim74 /usr/local/share/vim > > ../runtime/doc 644 vim vimdiff evim > > > installing /usr/local/share/man/fr/man1/vim.1 > > > sed: RE error: illegal byte sequence > > > > [...] > > > > > installing /usr/local/share/man/ru.KOI8-R/man1/vimdiff.1 > > > installing /usr/local/share/man/ru.KOI8-R/man1/evim.1 > > > sed: RE error: illegal byte sequence > > > > > > # To fix > > > add LC_ALL=C before sed. > > > > How to do that in a portable way? > > > > Does Mac have a different sed from what most systems are using? > > > > -- > > FATHER: Did you kill all those guards? > > LAUNCELOT: Yes ... I'm very sorry ... > > FATHER: They cost fifty pounds each! > > "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD > > > > /// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net \\\ > > /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ > > \\\ an exciting new programming language -- http://www.Zimbu.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 --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.