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

sed: RE error: illegal byte sequence while installing the manuals

Expand Messages
  • itchyny
    # 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
    Message 1 of 5 , Jun 18, 2014
    • 0 Attachment
      # 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/fr/man1/vimtutor.1
      sed: RE error: illegal byte sequence
      installing /usr/local/share/man/fr/man1/vimdiff.1
      installing /usr/local/share/man/fr/man1/evim.1
      sed: RE error: illegal byte sequence
      /bin/sh ./installman.sh install /usr/local/share/man/fr.ISO8859-1/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.ISO8859-1/man1/vim.1
      sed: RE error: illegal byte sequence
      installing /usr/local/share/man/fr.ISO8859-1/man1/vimtutor.1
      sed: RE error: illegal byte sequence
      installing /usr/local/share/man/fr.ISO8859-1/man1/vimdiff.1
      installing /usr/local/share/man/fr.ISO8859-1/man1/evim.1
      sed: RE error: illegal byte sequence
      /bin/sh ./installman.sh install /usr/local/share/man/fr.UTF-8/man1 "-fr.UTF-8" /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.UTF-8/man1/vim.1
      installing /usr/local/share/man/fr.UTF-8/man1/vimtutor.1
      installing /usr/local/share/man/fr.UTF-8/man1/vimdiff.1
      installing /usr/local/share/man/fr.UTF-8/man1/evim.1
      /bin/sh ./installman.sh install /usr/local/share/man/it/man1 "-it" /usr/local/share/vim /usr/local/share/vim/vim74 /usr/local/share/vim ../runtime/doc 644 vim vimdiff evim
      installing /usr/local/share/man/it/man1/vim.1
      sed: RE error: illegal byte sequence
      installing /usr/local/share/man/it/man1/vimtutor.1
      sed: RE error: illegal byte sequence
      installing /usr/local/share/man/it/man1/vimdiff.1
      installing /usr/local/share/man/it/man1/evim.1
      sed: RE error: illegal byte sequence
      /bin/sh ./installman.sh install /usr/local/share/man/it.ISO8859-1/man1 "-it" /usr/local/share/vim /usr/local/share/vim/vim74 /usr/local/share/vim ../runtime/doc 644 vim vimdiff evim
      installing /usr/local/share/man/it.ISO8859-1/man1/vim.1
      sed: RE error: illegal byte sequence
      installing /usr/local/share/man/it.ISO8859-1/man1/vimtutor.1
      sed: RE error: illegal byte sequence
      installing /usr/local/share/man/it.ISO8859-1/man1/vimdiff.1
      installing /usr/local/share/man/it.ISO8859-1/man1/evim.1
      sed: RE error: illegal byte sequence
      /bin/sh ./installman.sh install /usr/local/share/man/it.UTF-8/man1 "-it.UTF-8" /usr/local/share/vim /usr/local/share/vim/vim74 /usr/local/share/vim ../runtime/doc 644 vim vimdiff evim
      installing /usr/local/share/man/it.UTF-8/man1/vim.1
      installing /usr/local/share/man/it.UTF-8/man1/vimtutor.1
      installing /usr/local/share/man/it.UTF-8/man1/vimdiff.1
      installing /usr/local/share/man/it.UTF-8/man1/evim.1
      /bin/sh ./installman.sh install /usr/local/share/man/ja/man1 "-ja.UTF-8" /usr/local/share/vim /usr/local/share/vim/vim74 /usr/local/share/vim ../runtime/doc 644 vim vimdiff evim
      installing /usr/local/share/man/ja/man1/vim.1
      installing /usr/local/share/man/ja/man1/vimtutor.1
      installing /usr/local/share/man/ja/man1/vimdiff.1
      installing /usr/local/share/man/ja/man1/evim.1
      /bin/sh ./installman.sh install /usr/local/share/man/pl/man1 "-pl" /usr/local/share/vim /usr/local/share/vim/vim74 /usr/local/share/vim ../runtime/doc 644 vim vimdiff evim
      installing /usr/local/share/man/pl/man1/vim.1
      sed: RE error: illegal byte sequence
      installing /usr/local/share/man/pl/man1/vimtutor.1
      sed: RE error: illegal byte sequence
      installing /usr/local/share/man/pl/man1/vimdiff.1
      installing /usr/local/share/man/pl/man1/evim.1
      sed: RE error: illegal byte sequence
      /bin/sh ./installman.sh install /usr/local/share/man/pl.ISO8859-2/man1 "-pl" /usr/local/share/vim /usr/local/share/vim/vim74 /usr/local/share/vim ../runtime/doc 644 vim vimdiff evim
      installing /usr/local/share/man/pl.ISO8859-2/man1/vim.1
      sed: RE error: illegal byte sequence
      installing /usr/local/share/man/pl.ISO8859-2/man1/vimtutor.1
      sed: RE error: illegal byte sequence
      installing /usr/local/share/man/pl.ISO8859-2/man1/vimdiff.1
      installing /usr/local/share/man/pl.ISO8859-2/man1/evim.1
      sed: RE error: illegal byte sequence
      /bin/sh ./installman.sh install /usr/local/share/man/pl.UTF-8/man1 "-pl.UTF-8" /usr/local/share/vim /usr/local/share/vim/vim74 /usr/local/share/vim ../runtime/doc 644 vim vimdiff evim
      installing /usr/local/share/man/pl.UTF-8/man1/vim.1
      installing /usr/local/share/man/pl.UTF-8/man1/vimtutor.1
      installing /usr/local/share/man/pl.UTF-8/man1/vimdiff.1
      installing /usr/local/share/man/pl.UTF-8/man1/evim.1
      /bin/sh ./installman.sh install /usr/local/share/man/ru.KOI8-R/man1 "-ru" /usr/local/share/vim /usr/local/share/vim/vim74 /usr/local/share/vim ../runtime/doc 644 vim vimdiff evim
      installing /usr/local/share/man/ru.KOI8-R/man1/vim.1
      sed: RE error: illegal byte sequence
      installing /usr/local/share/man/ru.KOI8-R/man1/vimtutor.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.

      --
      --
      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+unsubscribe@....
      For more options, visit https://groups.google.com/d/optout.
    • Bram Moolenaar
      ... [...] ... 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?
      Message 2 of 5 , Jun 22, 2014
      • 0 Attachment
        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 -- Bram@... -- 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+unsubscribe@....
        For more options, visit https://groups.google.com/d/optout.
      • itchyny
        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
        Message 3 of 5 , Jun 22, 2014
        • 0 Attachment
          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 -- Bram@... -- 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+unsubscribe@....
          For more options, visit https://groups.google.com/d/optout.
        • Bram Moolenaar
          ... Can you check this: All places where sed is used in src/installman.sh, prepend LC_ALL=C for every sed command (there are three). -- I generally avoid
          Message 4 of 5 , Jun 23, 2014
          • 0 Attachment
            Itchyny wrote:

            > 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.)

            Can you check this: All places where sed is used in src/installman.sh,
            prepend LC_ALL=C for every sed command (there are three).

            --
            'I generally avoid temptation unless I can't resist it."
            -- Mae West

            /// Bram Moolenaar -- Bram@... -- 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+unsubscribe@....
            For more options, visit https://groups.google.com/d/optout.
          • itchyny
            ... Right. Prepending LC_ALL=C for the three places fixes the sed: RE error: illegal byte sequence errors. -- -- You received this message from the vim_dev
            Message 5 of 5 , Jun 23, 2014
            • 0 Attachment
              > Can you check this: All places where sed is used in src/installman.sh,
              >
              > prepend LC_ALL=C for every sed command (there are three).
              >

              Right. Prepending LC_ALL=C for the three places fixes the "sed: RE error: illegal byte sequence" errors.

              --
              --
              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+unsubscribe@....
              For more options, visit https://groups.google.com/d/optout.
            Your message has been successfully submitted and would be delivered to recipients shortly.