Hi Christoph,

Le dimanche 14 août 2011 à 12:26:24 (+0200 CEST), Christoph Kling a écrit :
> Hi Julien
> 
> > You mention in your email that Ajaxterm crashes (or so) when you raise 'ls 
> > -l'.
> > Do you have any files/directories with specific encodings in your ~/ ?
> > what locale do you use on your server?
> 
> The locale of the user I log in with is set to en_US.

You mean en_US.utf8?

Check with `locale' or `echo $LANG'.

> There was one file with a German umlaut. After I renamed the file,
> ajaxterm doesn't crash when calling ls -l.

Great! This doesn't allow me to reproduce the issue, I only have UTF-8
locales on my various machines.

> How do I find out the exact encoding of a file name?

You can try running convm on this file:
  % convmv -t utf8 Überprüfung.txt
  Your Perl version has fleas #37757 #49830 
  Starting a dry run without changes...
  Skipping, already UTF-8: ./Überprüfung.txt
  No changes to your files done. Use --notest to finally rename the files.

See, in that case, it detects the filename is already encoded as UTF-8

I've found a python alternative at [0].
In my example, it gives:
  >>> import os
  >>> import chardet
  >>> chardet.detect(os.popen("ls *ng.txt").read())
  {'confidence': 0.75249999999999995, 'encoding': 'utf-8'}

> > > By the way, I can confirm the problem that ajaxterm does not react on
> > > Ctrl+C when in non-daemon mode:
> > >
> > > ^CTraceback (most recent call last):
> > >   File "/usr/share/ajaxterm/ajaxterm.py", line 652, in main
> > >     g_server.serve_forever()
> > >   File "/usr/lib/python2.6/SocketServer.py", line 224, in serve_forever
> > >     r, w, e = select.select([self], [], [], poll_interval)
> > > KeyboardInterrupt
> > 
> > I fail to understand what is the problem there?
> 
> I can't terminate the daemon. Shouldn't that be possible with ctrl+c?

It does in my case, which is why I didn't understand the issue. This is
however unrelated to the major problem, will check this afterwards.

Cheers,
Julien

[0] http://serverfault.com/questions/82821/how-to-tell-the-language-encoding-of-a-filename-on-linux

-- 
  .''`.   Julien Valroff ~ <jul...@kirya.net> ~ <jul...@debian.org>    
 : :'  :  Debian Developer & Free software contributor
 `. `'`   http://www.kirya.net/
   `-     4096R/ E1D8 5796 8214 4687 E416  948C 859F EF67 258E 26B1

Attachment: signature.asc
Description: Digital signature

Reply via email to