Unlocalised browser when launched from ssh (OS2008)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Jan 01, 2008 at 11:12:07PM +0300, Mikhail Sobolev wrote:
> On Sat, Dec 29, 2007 at 11:41:48PM +0200, Marius Gedminas wrote:
> > On Sat, Dec 29, 2007 at 11:28:08PM +0200, Tuomas Kulve wrote:
> > > Marius Gedminas wrote:
> > > >   browser --url http://www.google.com
> > 
> > Aha!  ssh copies my locale settings from the laptop, and lt_LT.UTF-8 is not supported
> > on the tablet:
> > 
> >   ~ $ locale
> >   locale: Cannot set LC_CTYPE to default locale: No such file or directory
> >   locale: Cannot set LC_ALL to default locale: No such file or directory
> >   LANG=en_US
> >   LC_CTYPE=lt_LT.UTF-8
...
> >   LC_MESSAGES=en_US
...
> >   LC_ALL=
> > 
> > When I override LC_CTYPE, I get translated messages.  A bit strange
> > that LC_CTYPE affects them -- LC_MESSAGES is sensible.
> > 
> > Well, then, I'll just add
> > 
> >   export LC_CTYPE=en_GB
> > 
> > to ~/.profile.
> This is somewhat strange: LC_CTYPE has nothing to do with messages... :(
> Are you really sure that the line above helps? :)

Yes.  Try it yourself: ssh into your tablet (or open xterm) and compare

  $ browser
  -:3: Invalid color constant 'SelectionColor'
  -:3: error: invalid string constant "SelectionColor", expected valid string constant

  (window title sane)

with

  $ LC_CTYPE=nosuchlocale browser
  browser[3439]: GLIB WARNING ** Gtk - Locale not supported by C library.
          Using the fallback 'C' locale.
  browser[3439]: GLIB WARNING ** Gdk - locale not supported by C library
  browser[3439]: Enable Debug mode
  browser[3439]: GLIB WARNING ** Gdk - locale not supported by C library
  browser[3439]: External use of libcertmanui, new osso context needed
  browser[3439]: OK, Gconf key for certs filename is set: /usr/share/certs/certman.cst
  browser[3439]: TRYING to open certificate store
  browser[3439]: lib_init_flag = "TRUE" ..
  browser[3439]: _open_certificate_store(): cst_file->str: "/usr/share/certs/certman.cst"
  -:3: Invalid color constant 'SelectionColor'
  -:3: error: invalid string constant "SelectionColor", expected valid string constant

  (window title is a msgid)

> If it does, probably
> the situation still is worth a bug...

Even if it's a bug, it's a minor one.

Marius Gedminas
-- 
C gives you enough rope to hang yourself. C++ also gives you the tree object to
tie it to.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.maemo.org/pipermail/maemo-users/attachments/20080102/e2e683d9/attachment.pgp 


[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Big List of Linux Books]    

  Powered by Linux