Re: Bug: org-agenda fails to interpret UTF-8 filenames in some cases
On Thursday, 5 Mar 2020 at 11:41, Lubos Boucek wrote: > Hello, > > After adding file "úkoly.org" (filename written with Czech keyboard) > with `C-c [`, immediate `M-x org-agenda t` goes through. However, > after restarting emacs, the same command stops with warning > "Non-existent agenda file c:/Users/lubos/Documents/org/úkoly.org. > [R]emove from list or [A]bort?". This looks like an encoding issue. Have a look at your emacs customization file (.emacs, .emacs.d/init.el, wherever customized variable settings are placed in your case) and fix the file name properly there? I know that I have the following line (as the first line) in some of my emacs files: # -*- coding: utf-8; -*- Maybe put that in your org customization file? But I should warn you that I still find encoding issues perplexing in Emacs. -- : Eric S Fraga via Emacs 28.0.50, Org release_9.3.6-354-g9d5880
Bug: org-agenda fails to interpret UTF-8 filenames in some cases
Hello, After adding file "úkoly.org" (filename written with Czech keyboard) with `C-c [`, immediate `M-x org-agenda t` goes through. However, after restarting emacs, the same command stops with warning "Non-existent agenda file c:/Users/lubos/Documents/org/úkoly.org. [R]emove from list or [A]bort?". Curiously, another character like 'č' doesn't trigger the warning. And even more curiously, if the file "úkoly.org" has been added after adding a file with 'č' in its name, there is no such problem. Thank you in advance for any investigation. Some diagnostics (before adding either file) follows: Windows 7 Emacs : GNU Emacs 26.3 (build 1, x86_64-w64-mingw32) of 2019-08-29 Package: Org mode version 9.3.6 (9.3.6-17-g389288-elpa @ c:/Users/lubos/AppData/Roaming/.emacs.d/elpa/org-20200224/) current state: == (setq org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-configure-edit-buffer) org-link-shell-confirm-function 'yes-or-no-p org-metadown-hook '(org-babel-pop-to-session-maybe) org-clock-out-hook '(org-clock-remove-empty-clock-drawer) org-agenda-files '("c:/Users/lubos/Documents/org/odkazy.org" "c:/Users/lubos/Documents/org/ukoly.org" "c:/Users/lubos/Documents/org/books.org" "c:/Users/lubos/Documents/org/tasks.org" "c:/Users/lubos/Documents/org/usernames.org") org-modules '(org-bbdb org-bibtex org-docview org-gnus org-info org-irc org-mhe org-rmail org-w3m org-drill) org-mode-hook '(#[0 "\300\301\302\303\304$\207" [add-hook change-major-mode-hook org-show-all append local] 5] #[0 "\300\301\302\303\304$\207" [add-hook change-major-mode-hook org-babel-show-result-all append local] 5] org-babel-result-hide-spec org-babel-hide-all-hashes org-eldoc-load) org-archive-hook '(org-attach-archive-delete-maybe) org-confirm-elisp-link-function 'yes-or-no-p org-agenda-before-write-hook '(org-agenda-add-entry-text) org-metaup-hook '(org-babel-load-in-session-maybe) org-bibtex-headline-format-function #[257 "\300 \236A\207" [:title] 3 "\n\n(fn ENTRY)"] org-babel-pre-tangle-hook '(save-buffer) org-tab-first-hook '(org-babel-hide-result-toggle-maybe org-babel-header-arg-expand) org-src-lang-modes '(("arduino" . arduino) ("redis" . redis) ("php" . php) ("C" . c) ("C++" . c++) ("asymptote" . asy) ("bash" . sh) ("beamer" . latex) ("calc" . fundamental) ("cpp" . c++) ("ditaa" . artist) ("dot" . fundamental) ("elisp" . emacs-lisp) ("ocaml" . tuareg) ("screen" . shell-script) ("shell" . sh) ("sqlite" . sql)) org-occur-hook '(org-first-headline-recenter) org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-show-empty-lines org-optimize-window-after-visibility-change) org-speed-command-hook '(org-speed-command-activate org-babel-speed-command-activate) org-font-lock-set-keywords-hook '(org-drill-add-cloze-fontification) org-confirm-shell-link-function 'yes-or-no-p org-link-parameters '(("attachment" :follow org-attach-open-link :export org-attach-export-link :complete org-attach-complete-link) ("id" :follow org-id-open) ("w3m" :store org-w3m-store-link) ("rmail" :follow org-rmail-open :store org-rmail-store-link) ("mhe" :follow org-mhe-open :store org-mhe-store-link) ("irc" :follow org-irc-visit :store org-irc-store-link) ("info" :follow org-info-open :export org-info-export :store org-info-store-link) ("gnus" :follow org-gnus-open :store org-gnus-store-link) ("docview" :follow org-docview-open :export org-docview-export :store org-docview-store-link) ("bibtex" :follow org-bibtex-open :store org-bibtex-store-link) ("bbdb" :follow org-bbdb-open :export org-bbdb-export :complete org-bbdb-complete-link :store org-bbdb-store-link) ("file+sys") ("file+emacs") ("shell" :follow org-link--open-shell) ("news" :follow #[257 "\301\300\302 Q!\207" ["news" browse-url ":"] 5 "\n\n(fn URL)"] ) ("mailto" :follow #[257 "\301\300\302 Q!\207" ["mailto" browse-url ":"] 5 "\n\n(fn URL)"] ) ("https" :follow #[257 "\301\300\302 Q!\207" ["https" browse-url ":"] 5 "\n\n(fn URL)"] ) ("http" :follow #[257 "\301\300\302 Q!\207" ["http" browse-url ":"] 5 "\n\n(fn URL)"] ) ("ftp" :follow #[257 "\301\300\302 Q!\207" ["ftp" browse-url ":"] 5 "\n\n(fn URL)"] ) ("help" :follow org-link--open-help) ("file" :complete org-link-complete-file)