Edgewall Software

Ticket #1058 (closed defect: worksforme)

Opened 4 years ago

Last modified 3 years ago

Incorrect encoding of file names in subversion repository

Reported by: eaglewang@… Owned by: jonas
Priority: normal Milestone:
Component: general Version: none
Severity: critical Keywords: browser
Cc: eaglewang@…

Description

I am a Chinese.
I have a subversion repository.There are directory names and file names in Chinese. Now,the question is :

  • if a directory name in Chinese:
    --------------------------------
    No such file or directory
    "/tags/΄µµ»񏟯": no such file or directory in revision 247 
    
    TracGuide — The Trac User and Administration Guide 
    -----------------------------
    
  • if a file name in Chinese:
    -----------------------------
    Oops...
    Trac detected an internal error: 
    null argument to internal routineIf you think this really should work and you can reproduce it. Then you should consider to report this problem to the Trac team. 
    
    Go to http://trac.edgewall.com/ and create a new ticket where you describe the problem, how to reproduce it. Don't forget to include the python traceback found below. 
    
    TracGuide — The Trac User and Administration Guide 
    
    Python traceback
    Traceback (most recent call last):
      File "C:\ContIntg\Python\Lib\site-packages\trac\core.py", line 525, in cgi_start
        real_cgi_start()
      File "C:\ContIntg\Python\Lib\site-packages\trac\core.py", line 520, in real_cgi_start
        dispatch_request(path_info, args, req, env)
      File "C:\ContIntg\Python\Lib\site-packages\trac\core.py", line 435, in dispatch_request
        module.run()
      File "C:\ContIntg\Python\Lib\site-packages\trac\Module.py", line 44, in run
        self.render()
      File "C:\ContIntg\Python\Lib\site-packages\trac\File.py", line 282, in render
        oh = svn.fs.node_history(root, self.path, self.pool)
    SystemError: null argument to internal routine
    -----------------------------------
    
  • if the content of a file in Chinese:
    ----------------------------------
    ==×¢Òâ==:
    1¡¢Ã¿ŽÎÌ᜻ǰÇëÎñ±ØÏÈupdateÒ»ÏÂ.
    2¡¢žÃÅäÖÿâĿǰµÄ·ÃÎÊ·Ÿ¶Îª£º
    -----------------------------------
    

ok,that's all.oh,my poor english.

Attachments

Change History

Changed 4 years ago by anonymous

Have you set the default_charset option in the [trac] section of trac.ini?

Changed 4 years ago by anonymous

I have set the default_charset option to cp936.
if the content of a file in Chinese, it's ok.

but if a directory name in Chinese or a file name in Chinese,the question is not ok.

thanks!

Changed 4 years ago by eaglewang@…

and there are the same questions when i use the "attach files" function .

Changed 4 years ago by anonymous

  • cc eaglewang@… added

Changed 4 years ago by eaglewang@…

anyone give an answer,please!

Changed 4 years ago by cmlenz

  • summary changed from Charset ??? to Incorrect encoding of file names in subversion repository

Trying to give this ticket a better summary.

The file contents are decoded/encoded properly, but the file name isn't. If I understand correctly, that is.

Changed 3 years ago by yxy.top

is there someone doing it correct? how

Changed 3 years ago by anonymous

I have exactly the same problem and getting the same error messages when a file or directory contains a german umlaut.

The displayed URL contains the correct UTF-8 hexadecimal codings.

Our actual installation is W2003 Server / trac 0.8 / Python 2.3.4 / Apache 2.0.52 / Subversion 1.2.1

Changed 3 years ago by anonymous

  • priority changed from high to normal

Changed 3 years ago by cboos

  • component changed from browser to general

Any chance someone could create a small repository dump which reproduces the issue and attach it here?

Personally, I've never had any problems using filenames containing accented characters, neither in Subversion nor for attachments.

Changed 3 years ago by cboos

  • status changed from new to closed
  • resolution set to worksforme

I believe that directory and filenames in the TracBrowser should be working as expected with unicode characters, after r3092. The same for attachments, since r3103.

Please try out the latest from trunk and let us know if everything works as expected.

Add/Change #1058 (Incorrect encoding of file names in subversion repository)

Author



Change Properties
<Author field>
Action
as closed
Next status will be 'reopened'
to The owner will change from jonas. Next status will be 'closed'
 
Note: See TracTickets for help on using tickets.