Hi,
I use org-id and got some surprising reports of duplicate IDs. It seems that the issue is that one of my files containing IDs has a filename consisting of some non-ascii characters (a Swedish ä). When this filename is read in from ~org-id-locations-file~ in ~org-id-locations-load~ the ä is interpreted as “\303\244”. But ~org-id-files~ and ~org-id-locations~ is also populated from currently open files, so I usually get that file represented twice as two different files in ~org-id-files~. So I get both “j-allmänt.org” and j-allm\303\244nt.org“. Both seem to be scanned correctly by ~org-id-update-id-locations~ and this results in duplicate IDs.

I tried changing the call to ~insert-file-contents-literally~ in ~org-id-locations-load~ to just ~insert-file-contents~ and this seemed to fix the behaviour (as correct decoding is done then?). I don’t know if there are other unwanted effects from using ~insert-file-contents~, but otherwise this seems to me to be a more correct solution.

Cheers,
Anders Johansson

Reply via email to