Hi Thorsten:

My comits in Subversion seem to work right now, it seem to be a little
encoding issue as I thought. SCMBug reads the log messages etc. from
STDIN which has a special encoding, CP850 in my case with Windows, and
that information has to be provided to Perl so that Perl can decode
the characters into a proper Perl-String.

I just had add a line to decode the characters Perl just read from the
STDIN with the following lines in Deamon.pl:
$request->{ original_log_message } = $original_log_message;
$request->{ original_log_message } = decode("cp850", $request->{ 
original_log_message });

It seems that Perl handles the string internally in utf-8 and that is
directly written to the database via the Bugzilla-API. If one uses
$request->{ original_log_message } = encode("utf-8", $request->{ 
original_log_message });
end writes the log message to a file it has exactly the same content
as Bugzillas database.

For future use SCMBug should generally consider the current systems
Codepage it reads the data via STDIN, I think. Maybe this solves
Javier's problem, too?

But my problem is that I work in UTF-8... What have I need to add?
Something like?

$request->{ original_log_message } = $original_log_message;
$request->{ original_log_message } = decode("UTF-8", $request->{ 
original_log_message });

does this make sense?
Am I decoding from UTF-8 to UTF-8???

Thanks.-

Mit freundlichen Grüßen,

Thorsten Schöning

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

Reply via email to