I don't know if I'm editing the right file...
I've done what you said in file /usr/share/scmbug/lib/Scmbug/Connection.pm
but the tmp file isn't created. It seems that file isn't used: I have temporaly deleted the file and the system works like before... the commit was issued without the file.
???????????


Kristis Makris wrote:
On Tue, 2006-12-12 at 22:20 +0100, Javier Lafuente wrote:
  
There's no way...

I've tried some encodings and allways got the same log msg...
    

  
Tue Dec 12 22:09:55 2006 127.0.0.1:32829 Processing connection from
localhost.localdomain
Tue Dec 12 22:09:55 2006 127.0.0.1:32829 A?\195?\177ado una linea a
fich2 y pruebo el tema de los acentos cami?\195?\179n,
AL?\195?\129, ?\195?\177i?\195?\177li
    

  
It seems it comes "corrupted" from STDIN and encode treats each
character in ?\195?\179 (for example) as a ascii character... don't
you think so?
    

Yes, you are right. I wonder if you should apply this somewhere else.
e.g. not in Daemon.pm.in, but in Connection.pm.in:process_activity():

Change:

    # Log message
    $request .= $activity->log_message() . "\n";

into

    # Log message
    $request .= decode("es_ES", $activity->log_message()) . "\n";

Try saving $activity->log_message() both before and after you decode it
to see if it was corrupted originally:

open FILEHANDLE, ">> /tmp/somefile";
print FILEHANDLE Dumper( $activity->log_message() );
close FILEHANDLE;



  
_______________________________________________
scmbug-users mailing list
[email protected]
http://lists.mkgnu.net/cgi-bin/mailman/listinfo/scmbug-users

Reply via email to