1 I am using mercurial as RCS backend and ikiwiki 2.40.
3 It seems that, when adding a blog post, it is not immediately commited to the mercurial repo. I have a page with this directive:
5 \[[!inline pages="journal/blog2008/* and !*/Discussion" show="0" feeds="no" actions="yes" rootpage="journal/blog2008"]]
7 When I add a blog post, I see it on the wiki but it doesn't appear on `History` or `RecentChanges`. If I run `hg status` on the wiki source dir, I see the new file has been marked as `A` (ie, a new file that has not been commited).
9 If I then edit the blog post, **then** the file gets commited and I can see the edit on `History` and `RecentChanges`. The creation of the file remains unrecorded. --[[buo]]
11 > Ikiwiki calls `rcs_add()` if the page is new, followed by `rcs_commit()`.
12 > For mercurial, these run respectively `hg add` and `hg commit`. If the
13 > add or commit fails, it will print a warning to stderr, you might check
14 > apache's error.log to see if there's anything there. --[[Joey]]
16 >>The problem was using accented characters (é, í) on the change comments. I didn't have
17 >>an UTF-8 locale enabled in my setup file. By coincidence this happened for the first time
18 >>in a couple of consecutive blog posts, so I was mistaken about the root of the problem. I don't know if
19 >>you will consider this behavior a bug, since it's strictly speaking a misconfiguration but it
20 >>still causes ikiwiki's mercurial backend to fail. A quick note in the docs might be a good idea. For my part, please
21 >>close this bug, and thanks for the help. --[[buo]]
23 >>> So, in a non-utf8 locale, mercurial fails to commit if the commit
24 >>> message contains utf8? --[[Joey]]
26 >>>> (Sorry for the delay, I was AFK for a while.) What I am seeing is this: in a non-utf8 locale, using mercurial "stand-alone" (no ikiwiki involved), mercurial fails to commit if the commit message has characters such as á. If the locale is utf8, mercurial works fine (this is with mercurial 1.0).
28 >>>> However, the part that seems a bit wrong to me, is this: even if my locale is utf8, I have to explicitly set a utf8 locale in the wiki's setup file, or the commit fails. It looks like ikiwiki is not using this machine's default locale, which is utf8. Also, I'm not getting any errors on apache's error log.
30 >>>> Wouldn't it make sense to use the machine's default locale if 'locale' is commented out in the setup file?