On 2003-03-11 12:03+0100 Ionel Mugurel Ciobica wrote:
> On 11-03-2003, at 11h 53'50", Øyvind A. Holm wrote to linux-utf8 about "CVS log
> messages into UTF-8"
> > One of the remaining steps in my migration from ISO-8859-1 to UTF-8 are
> > the log messages in my CVS repository.
> >
> > Instead of reinventing the wheel, are there any scripts around that can
> > be runned once to convert the CVS log comments in the *,v files from
> > ISO-8859-1 to UTF-8 in a safe way?
>
> iconv --from-code=ISO-8859-1 --to-code=UTF-8
>
> or
>
> recode ISO-8859-1..UTF-8
>
> would be a good tool. It can be in a script:
>
> ====cut here===
> #!/bin/sh
> # ISO-8859-1 to UTF-8 conversion
> iconv --from-code=ISO-8859-1 --to-code=UTF-8
> ====cut here===
>
> or
>
> ====cut here===
> #!/bin/sh
> # ISO-8859-1 to UTF-8 conversion
> recode ISO-8859-1..UTF-8
> ====cut here===
Yeh, but that would also convert the source and binary data inside the
RCS file, not only the log messages. :) The script has to know about
the @ and @@ sections inside the file so nothing else but the messages
are converted.
Regards,
Øyvind
✁┄┄┄┄
Bush of the day:
«It’s clearly a budget. It’s got a lot of numbers in it.»
― Reuters, 2000-05-05
--
Linux-UTF8: i18n of Linux on all levels
Archive: http://mail.nl.linux.org/linux-utf8/