Opened 7 years ago
Closed 7 years ago
#13139 closed defect (cantfix)
UnicodeEncodeError: 'ascii' codec can't encode character u'\u200b' in position 6: ordinal not in range(128)
| Reported by: | Owned by: | ||
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | version control | Version: | 1.2.2 |
| Severity: | normal | Keywords: | |
| Cc: | Branch: | ||
| Release Notes: | |||
| API Changes: | |||
| Internal Changes: | |||
Description
How to Reproduce
While doing a GET operation on /admin/versioncontrol/repository, Trac issued an internal error.
(please provide additional details here)
Request parameters:
{'cat_id': u'versioncontrol', 'panel_id': u'repository', 'path_info': None}
User agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:65.0) Gecko/20100101 Firefox/65.0
System Information
Trac | 1.2.2
|
Babel | 0.9.6
|
Docutils | 0.7
|
Genshi | 0.7 (with speedups)
|
GIT | 2.21.0
|
pysqlite | 2.6.0
|
Python | 2.7.5 (default, Jul 13 2018, 13:06:57) [GCC 4.8.5 20150623 (Red Hat 4.8.5-28)]
|
setuptools | 2.1
|
SQLite | 3.7.17
|
jQuery | 1.11.3
|
jQuery UI | 1.11.4
|
jQuery Timepicker | 1.5.5
|
Enabled Plugins
Interface Customization
| shared-htdocs | |
| shared-templates | |
| site-htdocs | common, site
|
| site-templates |
Python Traceback
Traceback (most recent call last):
File "build/bdist.linux-x86_64/egg/trac/web/main.py", line 623, in _dispatch_request
dispatcher.dispatch(req)
File "build/bdist.linux-x86_64/egg/trac/web/main.py", line 239, in dispatch
resp = chosen_handler.process_request(req)
File "build/bdist.linux-x86_64/egg/trac/admin/web_ui.py", line 109, in process_request
provider.render_admin_panel(req, cat_id, panel_id, path_info)
File "build/bdist.linux-x86_64/egg/trac/versioncontrol/admin.py", line 342, in render_admin_panel
for (reponame, info) in all_repos.iteritems())
File "build/bdist.linux-x86_64/egg/trac/versioncontrol/admin.py", line 342, in <genexpr>
for (reponame, info) in all_repos.iteritems())
File "build/bdist.linux-x86_64/egg/trac/versioncontrol/admin.py", line 360, in _extend_info
repos = RepositoryManager(self.env).get_repository(reponame)
File "build/bdist.linux-x86_64/egg/trac/versioncontrol/api.py", line 602, in get_repository
repoinfo.copy())
File "build/bdist.linux-x86_64/egg/tracopt/versioncontrol/git/git_fs.py", line 368, in get_repository
use_committer_time=self.use_committer_time,
File "build/bdist.linux-x86_64/egg/tracopt/versioncontrol/git/git_fs.py", line 493, in __init__
git_fs_encoding=git_fs_encoding)
File "build/bdist.linux-x86_64/egg/tracopt/versioncontrol/git/PyGIT.py", line 233, in __init__
i = Storage(repo, log, git_bin, git_fs_encoding, rev_cache)
File "build/bdist.linux-x86_64/egg/tracopt/versioncontrol/git/PyGIT.py", line 402, in __init__
if not os.path.exists(__git_file_path()):
File "/usr/lib64/python2.7/genericpath.py", line 18, in exists
os.stat(path)
UnicodeEncodeError: 'ascii' codec can't encode character u'\u200b' in position 6: ordinal not in range(128)
Attachments (0)
Change History (2)
follow-up: 2 comment:1 by , 7 years ago
comment:2 by , 7 years ago
| Component: | general → version control |
|---|---|
| Resolution: | → cantfix |
| Status: | new → closed |
| Version: | → 1.2.2 |
Is
LANGempty? Set it to a UTF-8 locale. See https://bugs.python.org/issue25867 and StackOverflow.
Right. That's an InstallationIssue. Set LANG, LC_CTYPE, LC_ALL environment variable to convert Unicode filenames to filesystem names. ascii encoding is used if the environment is empty.



Is
LANGempty? Set it to a UTF-8 locale. See https://bugs.python.org/issue25867 and StackOverflow.