Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Non-ASCII characters in filenames cause UnicodeDecodeError when opening agenda view #362

Open
sevcsik opened this issue Sep 1, 2020 · 0 comments

Comments

@sevcsik
Copy link

sevcsik commented Sep 1, 2020

Hi!

If there are non-ascii filenames on my g:org_agenda_files, when I enter the agenda view, I get the following error:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/nix/store/4xcf67ki8hdjqjgsidblkc371f28r2di-vim-pack-dir/pack/myVimPackage/start/vim-orgmode/ftplugin/orgmode/plugins/Agenda.py", line 143, in list_next_week
    agenda_documents = cls._get_agendadocuments()
  File "/nix/store/4xcf67ki8hdjqjgsidblkc371f28r2di-vim-pack-dir/pack/myVimPackage/start/vim-orgmode/ftplugin/orgmode/plugins/Agenda.py", line 83, in _get_agendadocuments
    return self._load_agendafiles(agenda_files)
  File "/nix/store/4xcf67ki8hdjqjgsidblkc371f28r2di-vim-pack-dir/pack/myVimPackage/start/vim-orgmode/ftplugin/orgmode/plugins/Agenda.py", line 99, in _load_agendafiles
    vim.command(u_encode(u'badd %s' % agenda_file.replace(" ", "\\ ")))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 54: ordinal not in range(128)

If I rename the offending file to only contain ASCII characters (the offending filename was Felújítás.org), it works fine. My locale is hu_HU.UTF-8.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant