Guten Tag [email protected],
am Donnerstag, 22. Juli 2010 um 19:03 schrieben Sie:

> At this point, the comment still seems to be intact. The special
> characters are there and the Branch and Affected files info is present,
> nothing unusual.

This is because the data is read in CP_850 form Windows, handled as
CP_850 byte array internally by Perl and then printed again in CP_850
to your file.

> Can we conclude from this that the problem lies within Bugzilla?

I don't think so. The problem is, that Bugzilla works with a fixed
charset, UTF-8 in newer installations, and if Bugzilla needs strings
in that encoding and you provide some different encoding, there must
happen a conversion. If Bugzilla API could convert between arbitrary
encodings there would be a way to tell the API which encoding one uses
so Bugzilla can convert as needed. I don't think there is a way so you
have to provide a encoding everyone can understand and convert es
needed. This is Perls internal default format UTF-8 which can be
converted as needed, for example by the database driver, into
every other encoding.

SCMBug gets it's data from Subversion via stdin, which is encoded as
CP_850 on Windows and needs to be converted into a proper, UTF-8
encoded string in SCMBug before giving the data to Bugzilla. Perl
doesn't only store the data in UTF-8, but sets a flag which tells
everyone, that the data is UTF-8-encoded, too.

> And if so, why would Bugzilla work while entering special characters via
> the Web interface? As it does....

Bugzilla converts on it's own, but I don't think this happens directly
in the API, but whereever input is read from the browser etc.

> Does anyone have a clue how to get this fixed or how to proceed in order
> to track the error further down?

I think the following is what you need, maybe on a different place on
newer versions of SCMBug. I would just search for the statement in the
comment. It should work if you encode before using add_comment, of
course, but the first place where SCMBug gets the comment is the best.

http://bugzilla.mkgnu.net/show_bug.cgi?id=580#c14

Mit freundlichen Grüßen,

Thorsten Schöning

-- 
Thorsten Schöning
AM-SoFT IT-Systeme - Hameln | Potsdam | Leipzig
 
Telefon: Potsdam: 0331-743881-0
E-Mail:  [email protected]
Web:     http://www.am-soft.de

AM-SoFT GmbH IT-Systeme, Konsumhof 1-5, 14482 Potsdam
Amtsgericht Potsdam HRB 21278 P, Geschäftsführer: Andreas Muchow

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

Reply via email to