Re: [Bacula-users] Special characters on Ms Windows filenames...

2006-10-31 Thread dysmas 1956

 BUT there is an issue : if you save like that, it will prepend three 
 characters to your file (  hex : EF BB BF) which is a code 
 indicating it is utf-8. Very interesting, because if you open the file 
 in notepad, notepad will write in utf-8 ! Unfortunately this does not 
 work with Bacula, because it will report the following error :

 ERROR in ../../lib/parse_conf.c:804 Config error: Expected a Resource 
 name identifier, got: 
 : line 1, col 3 of file C:\Documents and Settings\All 
 Users\Application Data\Bacula\bacula-dir.conf

Good news on that point : Robert Nelson modified the parser so that it
ignores the utf8 marker just mentioned. With the next version you will
not have to wonder about it, just set Scite to utf8 and save.

Dysmas


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Special characters on Ms Windows filenames...

2006-10-31 Thread Dysmas de Lassus




Hello, Jaime, 

the problem you are dealing with can be solved quite easily. 
The question is bacula-dir.conf must be written in utf-8. Later
probably it will be transparent, but presently you have to do it
yourself. 
I am French. 
If I write : File = c:/Photothque/
It will not work. 
If I write File = c:/Potothque/
it will be OK. 

But it is difficult to write like that. 
I don't know if the solution given by Arno is OK for you, there is
another one : 

Just use an editor which can write utf-8. I use Scite (free). You have
a menu File/encoding. Set it to utf8, and it will write in utf8. 
BUT there is an issue : if you save like that, it will prepend three
characters to your file ( hex : EF BB BF) which is a code
indicating it is utf-8. Very interesting, because if you open the file
in notepad, notepad will write in utf-8 ! Unfortunately this does not
work with Bacula, because it will report the following error : 

ERROR in ../../lib/parse_conf.c:804 Config error: Expected a Resource
name identifier, got: 
 : line 1, col 3 of file C:\Documents and Settings\All
Users\Application Data\Bacula\bacula-dir.conf

Getting out of that is easy : just reset file/encoding in Scite to
normal (8 bit) BEFORE you save your file. (Or reopen your file, reset
and save again). 

1) you will see the utf-8 codes appearing in your text
2) there will be no characters prepended and Bacula will be happy.
And you also, I hope.

Sincerely 

Dysmas



  
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Arno
Lehmann
Sent: Friday, October 27, 2006 2:30 AM
To: Bacula Users
Subject: Re: [Bacula-users] Special characters on Ms Windows filenames...

Hi,

On 10/26/2006 5:03 PM, Jaime Ventura wrote:
  
  
Hello,
   On languages such as the Portuguese language there are "special 
characters" with accute accent or circumflex accent, such as
(hope you see them correctly).
  When backing up windows files with filenames with characters such 
as those, bacula (?) translate the to different characters. For instance:
   On windows File System:
   C:\Documents and Settings\Administrator\My 
Documents\susana\backups\susana\servio/susana\documentao\
   Bacula(?) Translation:
C:/Documents and Settings/Administrator/My 
Documents/susana/backups/susana/servio/susana/documentao/

  When I restore them, the filenames are correctly restored to their 
original name. So that means that bacula seems to handle correctly those 
characters.
   My problem is that I'm trying to set one directory for backup(on 
the file set) which have those kind of characters, but bacula (or the 
system) cant get there

   File option on file set:
   File = "C:/Documents and Settings/Susana Magalhes"

   What i get when trying to back it up:
 26-Oct 15:43 GSI01-fd:  Could not stat C:/Documents and 
Settings/Susana Magalhes/: ERR=O sistema no conseguiu localizar o 
ficheiro especificado.
   Which means "ERR=The system cannot find the path specified."
   If I use  the "translation" bacula does, File option on file set 
would be like this:
  File = "C:/Documents and Settings/Susana Magalhes"
   And it works. So, whenever there's a folder with those special 
characters, I need to do that "translation"

  
Is there a easy way to overcome this situations?
This seems to be a charset problem. But how can I solve it?
Thanks

  
  
It might help if you used the UTF-8 character set in the DIR configuration.
I guess you've got it set to iso8859-something now.

I'm never really sure how you do this, but I usually found that setting 
"LC_CTYPE=de_DE.UTF-8" in the shell gets me a utf-8 character set in 
addition to telling programs I want german language.
You have to set up your terminal to use or find the right character sets 
and fonts, though. If your OS isn't prepared for utf-8 character sets 
this might become difficult, I guess.

Anyway, after you have your working environment set to utf-8 use your 
favorite text editor to insert the right characters into the 
configuration file. Start the editor from the shell where you set the 
language environment.

Arno

  




-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Special characters on Ms Windows filenames...

2006-10-27 Thread Arno Lehmann
Hi,

On 10/26/2006 5:03 PM, Jaime Ventura wrote:
 Hello,
On languages such as the Portuguese language there are special 
 characters with accute accent or circumflex accent, such as ÃÁÂ ç  
 (hope you see them correctly).
   When backing up windows files with filenames with characters such 
 as those, bacula (?) translate the to different characters. For instance:
On windows File System:
C:\Documents and Settings\Administrator\My 
 Documents\susana\backups\susana\serviço/susana\documentação\
Bacula(?) Translation:
 C:/Documents and Settings/Administrator/My 
 Documents/susana/backups/susana/serviço/susana/documentação/
 
   When I restore them, the filenames are correctly restored to their 
 original name. So that means that bacula seems to handle correctly those 
 characters.
My problem is that I'm trying to set one directory for backup(on 
 the file set) which have those kind of characters, but bacula (or the 
 system) cant get there
 
File option on file set:
File = C:/Documents and Settings/Susana Magalhães
 
What i get when trying to back it up:
  26-Oct 15:43 GSI01-fd:  Could not stat C:/Documents and 
 Settings/Susana Magalhães/: ERR=O sistema não conseguiu localizar o 
 ficheiro especificado.
Which means ERR=The system cannot find the path specified.
If I use  the translation bacula does, File option on file set 
 would be like this:
   File = C:/Documents and Settings/Susana Magalhães
And it works. So, whenever there's a folder with those special 
 characters, I need to do that translation
 
   
 Is there a easy way to overcome this situations?
 This seems to be a charset problem. But how can I solve it?
 Thanks

It might help if you used the UTF-8 character set in the DIR configuration.
I guess you've got it set to iso8859-something now.

I'm never really sure how you do this, but I usually found that setting 
LC_CTYPE=de_DE.UTF-8 in the shell gets me a utf-8 character set in 
addition to telling programs I want german language.
You have to set up your terminal to use or find the right character sets 
and fonts, though. If your OS isn't prepared for utf-8 character sets 
this might become difficult, I guess.

Anyway, after you have your working environment set to utf-8 use your 
favorite text editor to insert the right characters into the 
configuration file. Start the editor from the shell where you set the 
language environment.

Arno

-- 
IT-Service Lehmann[EMAIL PROTECTED]
Arno Lehmann  http://www.its-lehmann.de


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Special characters on Ms Windows filenames...

2006-10-27 Thread Jaime Ventura
Thank you Arno,
   I've changed the system's charset to UTF-8 and after converted 
the configuration file it works normally.
   Thank you, again, you have have been most helpfully.




 


Jaime Ventura
[Infra-estruturas e Comunicações]

Rua Dr. António Bernardino de Almeida, 431
4200 - 072 Porto
Telef: +351 22 834 05 00 (04) - ext. 1641
Fax: +351 22 832 11 59

e-mail: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
url:www.isep.ipp.pt http://www.isep.ipp.pt 







Arno Lehmann wrote:
 Hi,

 On 10/26/2006 5:03 PM, Jaime Ventura wrote:
   
 Hello,
On languages such as the Portuguese language there are special 
 characters with accute accent or circumflex accent, such as ÃÁÂ ç  
 (hope you see them correctly).
   When backing up windows files with filenames with characters such 
 as those, bacula (?) translate the to different characters. For instance:
On windows File System:
C:\Documents and Settings\Administrator\My 
 Documents\susana\backups\susana\serviço/susana\documentação\
Bacula(?) Translation:
 C:/Documents and Settings/Administrator/My 
 Documents/susana/backups/susana/serviço/susana/documentação/

   When I restore them, the filenames are correctly restored to their 
 original name. So that means that bacula seems to handle correctly those 
 characters.
My problem is that I'm trying to set one directory for backup(on 
 the file set) which have those kind of characters, but bacula (or the 
 system) cant get there

File option on file set:
File = C:/Documents and Settings/Susana Magalhães

What i get when trying to back it up:
  26-Oct 15:43 GSI01-fd:  Could not stat C:/Documents and 
 Settings/Susana Magalhães/: ERR=O sistema não conseguiu localizar o 
 ficheiro especificado.
Which means ERR=The system cannot find the path specified.
If I use  the translation bacula does, File option on file set 
 would be like this:
   File = C:/Documents and Settings/Susana Magalhães
And it works. So, whenever there's a folder with those special 
 characters, I need to do that translation

   
 Is there a easy way to overcome this situations?
 This seems to be a charset problem. But how can I solve it?
 Thanks
 

 It might help if you used the UTF-8 character set in the DIR configuration.
 I guess you've got it set to iso8859-something now.

 I'm never really sure how you do this, but I usually found that setting 
 LC_CTYPE=de_DE.UTF-8 in the shell gets me a utf-8 character set in 
 addition to telling programs I want german language.
 You have to set up your terminal to use or find the right character sets 
 and fonts, though. If your OS isn't prepared for utf-8 character sets 
 this might become difficult, I guess.

 Anyway, after you have your working environment set to utf-8 use your 
 favorite text editor to insert the right characters into the 
 configuration file. Start the editor from the shell where you set the 
 language environment.

 Arno

   

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Special characters on Ms Windows filenames...

2006-10-26 Thread Jaime Ventura
Hello,
   On languages such as the Portuguese language there are special 
characters with accute accent or circumflex accent, such as ÃÁÂ ç  
(hope you see them correctly).
  When backing up windows files with filenames with characters such 
as those, bacula (?) translate the to different characters. For instance:
   On windows File System:
   C:\Documents and Settings\Administrator\My 
Documents\susana\backups\susana\serviço/susana\documentação\
   Bacula(?) Translation:
C:/Documents and Settings/Administrator/My 
Documents/susana/backups/susana/serviço/susana/documentação/

  When I restore them, the filenames are correctly restored to their 
original name. So that means that bacula seems to handle correctly those 
characters.
   My problem is that I'm trying to set one directory for backup(on 
the file set) which have those kind of characters, but bacula (or the 
system) cant get there

   File option on file set:
   File = C:/Documents and Settings/Susana Magalhães

   What i get when trying to back it up:
 26-Oct 15:43 GSI01-fd:  Could not stat C:/Documents and 
Settings/Susana Magalhães/: ERR=O sistema não conseguiu localizar o 
ficheiro especificado.
   Which means ERR=The system cannot find the path specified.
   If I use  the translation bacula does, File option on file set 
would be like this:
  File = C:/Documents and Settings/Susana Magalhães
   And it works. So, whenever there's a folder with those special 
characters, I need to do that translation

  
Is there a easy way to overcome this situations?
This seems to be a charset problem. But how can I solve it?
Thanks



-- 



 


Jaime Ventura
[Infra-estruturas e Comunicações]

Rua Dr. António Bernardino de Almeida, 431
4200 - 072 Porto
Telef: +351 22 834 05 00 (04) - ext. 1641
Fax: +351 22 832 11 59

e-mail: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
url:www.isep.ipp.pt http://www.isep.ipp.pt 






-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users