[MPlayer-translations] help/help_mp-it.h vs. UTF-8
Diego Biurrun
diego at biurrun.de
Mon Aug 4 20:08:05 CEST 2008
On Mon, Aug 04, 2008 at 11:33:32AM +0200, Paul TT wrote:
> On Fri, 1 Aug 2008 18:26:33 +0200
> Diego Biurrun <diego at biurrun.de> wrote:
>
> > On Fri, Aug 01, 2008 at 01:39:20AM +0200, Paul TT wrote:
> > >
> > > anyway when i svn update it, then file doesn't recognize it again as
> > > utf-8.
> > > but when i do the commit it is _indeed_ utf-8
> >
> > What makes you think it is UTF-8? Have you looked at the file in
> > less? In vim (my statusline shows "help/help_mp-it.h" [converted])?
> > Have you checked with the 'file' command?
>
> yes and yes.
vim should not display [converted] for a correct UTF-8 file.
> > > can you -or someone else- check if its' really utf'ed in the repo.
> >
> > It is not UTF-8:
> >
> > silver:/var/tmp/mplayer_vanilla $ file file help/help_mp-it.h
> > help/help_mp-it.h: Non-ISO extended-ASCII C++ program text
>
> here is the same, but _after_ the commit
> before, 'file' recognizes it as utf-8
> now i'll retry the commit with the utf-8 file i saved.....
> pls tell me if then it is utf'd...
> sorry for the annoyance, but anyway this problem must be solved, sigh
The problem is finally solved now after your last commit.
> > > now my machine it's ok, after the reinstallation LANG was left as
> > > above, now it's all ok.
> >
> > This sentence confuses me. What is your locale now? What is the
> > value of the LANG and LC_ALL environment variables, what do you have
> > in /etc/default/locale?
>
> € echo $LANG
> it_IT.UTF-8 at euro
>
> € echo $LC_ALL
> it_IT.UTF-8 at euro
>
> € cat /etc/default/locale
> LANG=it_IT.UTF-8
This is (at least part of) the problem. Like I told you before,
it_IT.UTF-8 at euro is not the correct locale, it_IT.UTF-8 is. IIUC
it_IT.UTF-8 at euro is not even a valid locale. Switch your system to
it_IT.UTF-8 for good.
You have the correct locale set globally, so probably somewhere in
your .bashrc a different setting overrides it. All the LC_* variables
should have the correct value, you can check with 'set'.
Diego
More information about the MPlayer-translations
mailing list