SearchFAQMemberlist Log in
Reply to topic Page 1 of 1
"Wide character in syswrite" error (w/ patch)
Author Message
Post "Wide character in syswrite" error (w/ patch) 
First, I want to thank the developers for this great free software.

I am using BackupPC 1.5.0 on a RedHat 8 system with a locally-built
copy of Perl 5.8.0. (Note: I briefly tried 2.0.0beta with identical
results.)

All of my backup attempts were failing. The XferLOG.bad file showed
this error:

tarExtract: Wide character in syswrite at /opt/backuppc/lib/BackupPC/FileZIO.pm line 235.

I spent all day yesterday debugging this. I tried many settings for
the LANG and PERLIO environment variables. I tried adding "use
bytes;" to various sections of the code. I tried variations on "use
open IO => ...". (Details of any of these available upon request.)
Nothing worked.

Finally, I used the Carp module to instrument the code and get a
backtrace. This let me see where the wide characters were
originating. I am appending a patch to BackupPC_tarExtract which
fixes the problem; with this patch applied, my backups are working
fine. I also tested restorals, of course Smile.

I have no idea why this problem is only affecting this one utility. I
have no idea why others are not having the same issue. I do not know
why setting PERLIO=":raw" does not fix it. But I am certain that the
appended patch fixes it for me.

So, I would either like to see this patch applied, or I would like to
work with a BackupPC developer to fix my problem in some other way.
What are my chances?

Thanks!

- Pat

--- BackupPC_tarExtract 2003/03/19 15:59:10 1.1
+++ BackupPC_tarExtract 2003/03/19 15:59:15
< at > < at > -374,6 +374,7 < at > < at >
mkpath("$OutDir/$ShareName", 0, 0777);
open(NEW_FILES, ">>$TopDir/pc/$host/NewFileList")
|| die("can't open $TopDir/pc/$host/NewFileList");
+binmode STDIN;
1 while ( TarReadFile(*STDIN) );
1 while ( sysread(STDIN, my $discard, 1024) );



-------------------------------------------------------
This SF.net email is sponsored by: Does your code think in ink?
You could win a Tablet PC. Get a free Tablet PC hat just for playing.
What are you waiting for?
http://ads.sourceforge.net/cgi-bin/redirect.pl?micr5043en
_______________________________________________
BackupPC-users mailing list
BackupPC-users < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/

Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
  


Magic SEO URL for phpBB