Uploaded image for project: 'Subversion'
  1. Subversion
  2. SVN-4855

Character encoding error of svnmucc log message

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.10.6
    • None
    • svnmucc
    • None
    • CentOS 6.6

    Description

      When $LANG set zh_CN.GB18030; svnmucc cannot commit with some Chinese log message( not all Chinese).

      [root@Test-RD-56 svnmucc]# ./svnmucc -U 'file:///svnroot/Repo' -m '[ADD] 呢 ' mkdir '/2020'
      svnmucc: E070008: Error normalizing log message to internal format
      svnmucc: E070008: Can't convert string from native encoding to 'UTF-8':
      svnmucc: E070008: [ADD] {U+5462}

       

      I found this was made by svn_subst_translate_string2, in line 429-432 of svnmucc.c

      If comment out of this code ,the svnmucc is work well with Chinese.

      /*SVN_ERR_W(svn_subst_translate_string2(&message, NULL, NULL,
      message, NULL, FALSE,
      pool, pool),
      _("Error normalizing log message to internal format"));*/

      Attachments

        Activity

          People

            Unassigned Unassigned
            haiyuan Nathan Qian
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: