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

Characters in the log that cannot be represented in local.getdefaultlocale()[1] lead to exception

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Blocker
    • Resolution: Unresolved
    • 1.6.x
    • nonblocking
    • contrib/svnmerge.py
    • None

    Description

      Traceback (most recent call last):
        File "/usr/local/bin/svnmerge.py", line 2366, in <module>
          main(sys.argv[1:])
        File "/usr/local/bin/svnmerge.py", line 2361, in main
          cmd(branch_dir, branch_props)
        File "/usr/local/bin/svnmerge.py", line 1813, in __call__
          return self.func(*args, **kwargs)
        File "/usr/local/bin/svnmerge.py", line 1563, in action_merge
          print >>f, construct_merged_log_message(opts["source-url"], revs),
        File "/usr/local/bin/svnmerge.py", line 1139, in construct_merged_log_message
          message = get_commit_log(url, r)
        File "/usr/local/bin/svnmerge.py", line 1125, in get_commit_log
          return recode_stdout_to_file("".join(out[1:]))
        File "/usr/local/bin/svnmerge.py", line 229, in recode_stdout_to_file
          return u.encode(locale.getdefaultlocale()[1])
        File
      "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/encodings/mac_roman.py",
      line 12, in encode
          return codecs.charmap_encode(input,errors,encoding_table)
      UnicodeEncodeError: 'charmap' codec can't encode character u'\u06cc' in position
      159: character maps to <undefined>
      

      Attachments

        1. 1_charset.diff
          4 kB
          Benson Margulies

        Activity

          People

            blair Blair Zajac
            bmargulies Benson Margulies
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: