Re: find encoding of filenames

2007-03-27 Thread Chris Bannister
On Mon, Mar 26, 2007 at 06:42:25PM +0200, Jochen Schulz wrote:
 Just a thought:
 
 $ touch äöüß.éèâ
 
 $ ls -lh äöüß.éèâ
 -rw-r--r-- 1 jrschulz jrschulz 0 2007-03-26 18:40 äöüß.éèâ
 
 $ ls -1  filelist
 
 $ file filelist
 filelist: UTF-8 Unicode text, with escape sequences

Interesting ... if I copy'n'paste the above I get:
$ touch äßé

If I copy'n'paste the above into another VT I get
touch .

But it takes 13 backspace pushes to erase it.
Then if I type $ echo $LANG
-bash: echo: command not found

But if I type it again:
en_NZ.UTF-8

Must be upsetting readline or something.

-- 
Chris.
==
Don't forget to check that your /etc/apt/sources.lst entries point to 
etch and not testing, otherwise you may end up with a broken system once
etch goes stable.



Re: find encoding of filenames

2007-03-26 Thread Kamaraju S Kusumanchi
Kevin Mark wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 

 maybe this would help: utf8-migration-tool

I managed to install this package. But how exactly do I use this package?
There is no binary, no manpages whatsoever.
The /usr/share/doc/utf8-migration-tool/README is cryptic enough that I
understood nothing from it. Any simple instructions on how to go about it?

thanks
raju


-- 
Kamaraju S Kusumanchi
http://www.people.cornell.edu/pages/kk288/
http://malayamaarutham.blogspot.com/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: find encoding of filenames

2007-03-26 Thread Greg Folkert
On Mon, 2007-03-26 at 11:30 -0400, Kamaraju S Kusumanchi wrote:
 Kevin Mark wrote:
 
  -BEGIN PGP SIGNED MESSAGE-
  Hash: SHA1
  
 
  maybe this would help: utf8-migration-tool
 
 I managed to install this package. But how exactly do I use this package?
 There is no binary, no manpages whatsoever.
 The /usr/share/doc/utf8-migration-tool/README is cryptic enough that I
 understood nothing from it. Any simple instructions on how to go about it?

[EMAIL PROTECTED]:~$ dpkg -L utf8-migration-tool
/.
/usr
/usr/share
/usr/share/doc
/usr/share/doc/utf8-migration-tool
/usr/share/doc/utf8-migration-tool/README
/usr/share/doc/utf8-migration-tool/TODO
/usr/share/doc/utf8-migration-tool/copyright
/usr/share/doc/utf8-migration-tool/changelog.gz
/usr/share/man
/usr/share/man/man1
/usr/share/man/man1/utf8migrationtool.1.gz
/usr/share/applications
/usr/share/applications/utf8migrationtool.desktop
/usr/share/utf8-migration-tool
/usr/share/utf8-migration-tool/glade
/usr/share/utf8-migration-tool/glade/wizard.glade
/usr/share/utf8-migration-tool/glade/wizard_convertfiles.glade
/usr/share/utf8-migration-tool/glade/wizard_login.glade
/usr/share/utf8-migration-tool/glade/wizard_welcome.glade
/usr/share/utf8-migration-tool/pylib
/usr/share/utf8-migration-tool/pylib/configure.py
/usr/share/utf8-migration-tool/pylib/gdmConfigParser.py
/usr/share/utf8-migration-tool/pylib/wizard
/usr/share/utf8-migration-tool/pylib/wizard/__init__.py
/usr/share/utf8-migration-tool/pylib/wizard/save.py
/usr/share/utf8-migration-tool/pylib/wizard/steps.py
/usr/share/utf8-migration-tool/pylib/wizard/wizard.py
/usr/share/python-support
/usr/share/python-support/utf8-migration-tool.dirs
/usr/bin
/usr/bin/utf8migrationtool
/var
/var/lib
/var/lib/update-notifier
/var/lib/update-notifier/user.d
/var/lib/update-notifier/user.d/hook

utf8migrationtool is a wizard that simplifies upgrading a Debian system
towards UTF-8 locales.

It appears that: /usr/bin/utf8migrationtool

Is the binary. It smoked through my homedir.

-- 
greg, [EMAIL PROTECTED]

Novell's Directory Services is a competitive product to Microsoft's
Active Directory in much the same way that the Saturn V is a competitive
product to those dinky little model rockets that kids light off down at
the playfield. -- Thane Walkup


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: find encoding of filenames

2007-03-26 Thread Kamaraju S Kusumanchi
Greg Folkert wrote:

 On Mon, 2007-03-26 at 11:30 -0400, Kamaraju S Kusumanchi wrote:
 Kevin Mark wrote:
 
  -BEGIN PGP SIGNED MESSAGE-
  Hash: SHA1
  
 
  maybe this would help: utf8-migration-tool
 
 I managed to install this package. But how exactly do I use this package?
 There is no binary, no manpages whatsoever.
 The /usr/share/doc/utf8-migration-tool/README is cryptic enough that I
 understood nothing from it. Any simple instructions on how to go about
 it?
 
 [EMAIL PROTECTED]:~$ dpkg -L utf8-migration-tool


Oh man! This is pretty embarrassing. I was using

dpkg -S utf8-migration-tool all the time and was not finding the binary or
manpages.[raju banging his head on the table :-)]

thanks
raju

-- 
Kamaraju S Kusumanchi
http://www.people.cornell.edu/pages/kk288/
http://malayamaarutham.blogspot.com/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: find encoding of filenames

2007-03-26 Thread Kamaraju S Kusumanchi
Kevin Mark wrote:

 maybe this would help: utf8-migration-tool

This tool seems to work either on the whole /home/user directory or on the
whole system. I do not want that. I just want to convert the encoding of
filenames that belong to a single directory. I do not want to migrate the
whole system to utf8.

Moreover, the original question still remains. Given a bunch of files, how
do I determine their current encoding?


thanks
raju

-- 
Kamaraju S Kusumanchi
http://www.people.cornell.edu/pages/kk288/
http://malayamaarutham.blogspot.com/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: find encoding of filenames

2007-03-26 Thread H.S.

Kamaraju S Kusumanchi wrote:

Kevin Mark wrote:


maybe this would help: utf8-migration-tool


This tool seems to work either on the whole /home/user directory or on the
whole system. I do not want that. I just want to convert the encoding of
filenames that belong to a single directory. I do not want to migrate the
whole system to utf8.


Is iconv what you are looking for?
NAME
   iconv - Convert encoding of given files from one encoding to another

SYNOPSIS
   iconv -f encoding -t encoding inputfile

DESCRIPTION
   The iconv program converts the encoding of characters in 
inputfile from one coded character set to another. The result
   is written to standard output unless otherwise specified by the 
--output option.






Moreover, the original question still remains. Given a bunch of files, how
do I determine their current encoding?



Use file command perhaps? Real example:
$ file foo.txt
foo.txt: UTF-8 Unicode text


-HS


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: find encoding of filenames

2007-03-26 Thread Jochen Schulz
Kamaraju S Kusumanchi:
 
 Moreover, the original question still remains. Given a bunch of files, how
 do I determine their current encoding?

Just a thought:

$ touch äöüß.éèâ

$ ls -lh äöüß.éèâ
-rw-r--r-- 1 jrschulz jrschulz 0 2007-03-26 18:40 äöüß.éèâ

$ ls -1  filelist

$ file filelist
filelist: UTF-8 Unicode text, with escape sequences

So saving a directory listing into a file and running the 'file' utility
might help.

J.
-- 
In this bunker there are women and children. There are no weapons.
[Agree]   [Disagree]
 http://www.slowlydownward.com/NODATA/data_enter2.html


signature.asc
Description: Digital signature


Re: find encoding of filenames

2007-03-26 Thread Kamaraju S Kusumanchi
Jochen Schulz wrote:

 Kamaraju S Kusumanchi:
 
 Moreover, the original question still remains. Given a bunch of files,
 how do I determine their current encoding?
 
 Just a thought:
 
 $ touch äöüß.éèâ
 
 $ ls -lh äöüß.éèâ
 -rw-r--r-- 1 jrschulz jrschulz 0 2007-03-26 18:40 äöüß.éèâ
 
 $ ls -1  filelist
 
 $ file filelist
 filelist: UTF-8 Unicode text, with escape sequences
 

For me the output of file is different and does not include the encoding
information.

$tree /backup_halo_system_files_20070216  filelist

$file filelist
filelist: ASCII text

ls -al, ls -1 etc., also give the same result.


raju
-- 
Kamaraju S Kusumanchi
http://www.people.cornell.edu/pages/kk288/
http://malayamaarutham.blogspot.com/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: find encoding of filenames

2007-03-25 Thread Kevin Mark
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Sun, Mar 25, 2007 at 08:47:36PM -0400, Kamaraju S Kusumanchi wrote:
 1. Given a bunch of files, how can I find out the encoding of their
 filenames?
 2. Which encoding is the best, more portable, should be preferred...?
 
 Why I need this?
 I am trying to burn couple of files on Debian Etch using k3b (0.12.17).
 These files were originally located on another machine running Fedora Core
 1 and I copied them onto the Debian machine. However when I am trying to
 burn them using k3b, I am getting the following error
 
 Encountered an incorrectly encoded filename x.map
 This may be caused by a system update which changed the local character set.
 You may use convmv (http://j3e.de/linux/convmv/) to fix the filename
 encoding.
 Could not determine size of resulting image file.
 
 
 However inorder to use convmv, I need to know the original encoding and
 figure out the final encoding and then apply convmv.
 
 Any ideas/suggestions/comments?
 
 thanks
 raju
maybe this would help: utf8-migration-tool
- -- 
|  .''`.  == Debian GNU/Linux == |   my web site:   |
| : :' :  The  Universal |mysite.verizon.net/kevin.mark/|
| `. `'  Operating System| go to counter.li.org and |
|   `-http://www.debian.org/ |be counted! #238656   |
|  my keyserver: subkeys.pgp.net | my NPO: cfsg.org |
|join the new debian-community.org to help Debian!  |
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFGBzakv8UcC1qRZVMRAvkLAKCQRz7vG+TH52D/iar+tTR/aDD9TwCeLQh5
TFRDW4MzdiJ2Aj3KuIlLq7s=
=aMWB
-END PGP SIGNATURE-


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: find encoding of filenames

2007-03-25 Thread Kamaraju S Kusumanchi
Kevin Mark wrote:


 maybe this would help: utf8-migration-tool

Which package contains this command?

$apt-file search migration-tool
gdesklets: usr/lib/gdesklets/gdesklets-migration-tool
gdesklets: usr/share/gdesklets/migration-tool


raju

-- 
Kamaraju S Kusumanchi
http://www.people.cornell.edu/pages/kk288/
http://malayamaarutham.blogspot.com/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: find encoding of filenames

2007-03-25 Thread Greg Folkert
On Sun, 2007-03-25 at 23:22 -0400, Kamaraju S Kusumanchi wrote:
 Kevin Mark wrote:
 
 
  maybe this would help: utf8-migration-tool
 
 Which package contains this command?
 
 $apt-file search migration-tool
 gdesklets: usr/lib/gdesklets/gdesklets-migration-tool
 gdesklets: usr/share/gdesklets/migration-tool

How about this?

[EMAIL PROTECTED]:~$ apt-cache search utf8 migration
utf8-migration-tool - Debian UTF-8 migration wizard

-- 
greg, [EMAIL PROTECTED]

Novell's Directory Services is a competitive product to Microsoft's
Active Directory in much the same way that the Saturn V is a competitive
product to those dinky little model rockets that kids light off down at
the playfield. -- Thane Walkup


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: find encoding of filenames

2007-03-25 Thread Kevin Mark
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Sun, Mar 25, 2007 at 11:22:39PM -0400, Kamaraju S Kusumanchi wrote:
 Kevin Mark wrote:
 
 
  maybe this would help: utf8-migration-tool
 
 Which package contains this command?
 
 $apt-file search migration-tool
 gdesklets: usr/lib/gdesklets/gdesklets-migration-tool
 gdesklets: usr/share/gdesklets/migration-tool
 
 
Package utf8-migration-tool

* unstable (misc): Debian UTF-8 migration wizard
  0.5.2: all
its a tool for users having non-utf8 files name and it converts them to
utf8.


- -- 
|  .''`.  == Debian GNU/Linux == |   my web site:   |
| : :' :  The  Universal |mysite.verizon.net/kevin.mark/|
| `. `'  Operating System| go to counter.li.org and |
|   `-http://www.debian.org/ |be counted! #238656   |
|  my keyserver: subkeys.pgp.net | my NPO: cfsg.org |
|join the new debian-community.org to help Debian!  |
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFGBz5dv8UcC1qRZVMRArO5AJ9OFzLuTvL64nfC5IumoFxur4T6eQCffq3y
iIYKyK80FaKS2Ho1ADZn4rg=
=NTAN
-END PGP SIGNATURE-


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: find encoding of filenames

2007-03-25 Thread Kamaraju S Kusumanchi
Greg Folkert wrote:

 On Sun, 2007-03-25 at 23:22 -0400, Kamaraju S Kusumanchi wrote:
 Kevin Mark wrote:
 
 
  maybe this would help: utf8-migration-tool
 
 Which package contains this command?
 
 $apt-file search migration-tool
 gdesklets: usr/lib/gdesklets/gdesklets-migration-tool
 gdesklets: usr/share/gdesklets/migration-tool
 
 How about this?
 
 [EMAIL PROTECTED]:~$ apt-cache search utf8 migration
 utf8-migration-tool - Debian UTF-8 migration wizard
 

I tried this as well, but no results.

I guess the reason is that I am running etch and currently
utf8-migration-tool is not in Etch and exists only in unstable.

raju

-- 
Kamaraju S Kusumanchi
http://www.people.cornell.edu/pages/kk288/
http://malayamaarutham.blogspot.com/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]