Hi list,

Windows 2003 server
Apache 2.2.9
Php 5.2.6
MySql 5.0.67
Mantis 1.1.2
Subversion 1.5.1
Language: French

I try to play with Mantis/Svn integration, 
It works as expected with ascii log,
but I get an error if the string sent to checkin.php contains an accent (like 
'é')

After some googleizations, I think it is due to svnadmin output, witch is 
converted to OEM charset.

See what is sent in attached [mantisnote_r81.txt] (where 'é' is replaced with a 
comma) and what is returned in attached [mantis.log].

Here follows some snippets from my config:

<snip content="POST-COMMIT HOOK">
  set REPOS=%1
  set REV=%2

  set details_file=E:\test_svn\mantisnote_r%REV%.txt
  set log_file=E:\test_svn\mantis.log

  echo ****** Source code change ******>%details_file%
  svnlook log -r %REV% %REPOS%>>%details_file%
  echo svn revision:%REV%>>%details_file%
  rem svnlook diff -r %REV% %REPOS%>>%details_file%

  c:\php-5.2.6\php.exe c:\php-5.2.6\mantis-1.1.2\core\checkin.php 
<%details_file% >%log_file%
  rem del %details_file%
  rem del %log_file%
</snip>

<snip content="config_inc.php">
  ############################
  # Mantis Misc Settings
  ############################
  # --- Source Control Integration ------
  $g_source_control_notes_view_status = VS_PRIVATE;
  $g_source_control_account = 'svn';
  $g_source_control_set_status_to = OFF;
  $g_source_control_set_resolution_to = FIXED;
  $g_source_control_regexp = "/\bissue [#]{0,1}(\d+)\b/i";
  $g_source_control_fixed_regexp = "%source_control_regexp%";
</snip>

<snip content="my.ini">
  [mysql]
  default-character-set=utf8
</snip>

Is there any patch or workaround? Or did I missed something?

Pascal


Attachment: mantis.log
Description: mantis.log

****** Source code change ******
test hook mantis issue #1 avec un ‚ dans le commentaire
svn revision:81
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
mantisbt-help mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mantisbt-help

Reply via email to