ikiwiki/doc
Joey Hess 965f7310fe git: Fix handling of utf-8 filenames in recentchanges.
Seems that the problem is that once the \nnn coming from git is converted
to a single character, decode_utf8 decides that this is a standalone
character, and not part of a multibyte utf-8 sequence, and so does nothing.
I tried playing with the utf-8 flag, but that didn't work. Instead, use
decode("utf8"), which doesn't have the same qualms, and successfully
decodes the octets into a utf-8 character.

Rant:

Think for a minute about fact that any and every program that parses git-log,
or git-show, etc output to figure out what files were in a commit needs to
contain this snippet of code, to convert from git-log's wacky output to a
regular character set:

if ($file =~ m/^"(.*)"$/) {
	($file=$1) =~ s/\\([0-7]{1,3})/chr(oct($1))/eg;
}

(And it's only that "simple" if you don't care about filenames with
embedded \n or \t or other control characters.)

Does that strike anyone else as putting the parsing and conversion in the
wrong place (ie, in gitweb, ikiwiki, etc, etc)? Doesn't anyone who actually
uses git with utf-8 filenames get a bit pissed off at seeing \xxx\xxx
instead of the utf-8 in git-commit and other output?
2008-09-25 18:26:42 -04:00
..
banned_users
basewiki
bugs git: Fix handling of utf-8 filenames in recentchanges. 2008-09-25 18:26:42 -04:00
cgi
contact
css_market add 2008-08-21 22:23:28 -04:00
examples rootpage is not a pagespec 2008-09-14 13:50:34 -04:00
forum question about filter hook 2008-09-12 10:38:56 -04:00
ikiwiki attachment: Add admin() pagespec to test if the uploading user is a wiki admin. 2008-09-25 16:49:30 -04:00
ikiwiki-mass-rebuild
ikiwikiusers
index fix links 2008-09-14 17:05:28 -04:00
install fix links 2008-09-14 17:05:28 -04:00
logo
news add news item for ikiwiki 2.65 2008-09-24 18:49:05 -04:00
plugins Add keepextension parameter to htmlize hook. (Willu) 2008-09-23 13:39:21 -04:00
post-commit
rcs Fix for error on git pull origin 2008-09-01 06:11:55 -04:00
roadmap
sandbox 2008-08-23 07:54:17 -04:00
security
setup 2008-09-05 06:55:18 -04:00
smileys
soc
tags
templates response 2008-09-17 13:45:57 -04:00
tips Tips on configuring lighttpd to enable ikiwiki.cgi 2008-09-15 11:29:57 -04:00
todo response 2008-09-25 17:11:29 -04:00
translation
usage
users response 2008-09-20 13:57:56 -04:00
w3mmode
wikiicons Added a small icon to the search input box. 2008-08-06 19:34:33 -04:00
GPL
TourBusStop.mdwn move inline docs to ikiwiki/directive/inline 2008-09-11 19:39:35 -04:00
backlinks.mdwn
banned_users.mdwn
basewiki.mdwn move inline docs to ikiwiki/directive/inline 2008-09-11 19:39:35 -04:00
blog.mdwn move inline docs to ikiwiki/directive/inline 2008-09-11 19:39:35 -04:00
bugs.mdwn
cgi.mdwn
commit-internals.mdwn
consultants.mdwn
contact.mdwn
css.mdwn
css_market.mdwn Adding two CSS / themes 2008-09-22 10:31:21 -04:00
download.mdwn
examples.mdwn
favicon.ico
features.mdwn move inline docs to ikiwiki/directive/inline 2008-09-11 19:39:35 -04:00
forum.mdwn
freesoftware.mdwn
git.mdwn
ikiwiki-makerepo.mdwn monotone updates 2008-08-22 00:22:02 -04:00
ikiwiki-mass-rebuild.mdwn
ikiwiki-transition.mdwn add ikiwiki-transition setupformat subcommand. 2008-08-05 20:40:49 -04:00
ikiwiki-update-wikilist.mdwn
ikiwiki.mdwn reorder 2008-09-12 16:12:37 -04:00
ikiwikiusers.mdwn 2008-09-22 13:10:05 -04:00
index.mdwn move inline docs to ikiwiki/directive/inline 2008-09-11 19:39:35 -04:00
install.mdwn
local.css
logo.mdwn
news.mdwn
page_locking.mdwn
pagehistory.mdwn
patch.mdwn
plugins.mdwn Sort plugins by title. 2008-08-06 23:09:08 -04:00
post-commit.mdwn
rcs.mdwn
recentchanges.mdwn
roadmap.mdwn update 2008-09-12 16:21:00 -04:00
sandbox.mdwn move inline docs to ikiwiki/directive/inline 2008-09-11 19:39:35 -04:00
security.mdwn
setup.mdwn typo 2008-09-15 11:32:36 -04:00
shortcuts.mdwn rename preprocessordirective to directive 2008-08-25 14:19:39 -04:00
sitemap.mdwn
smileys.mdwn
soc.mdwn
style.css progress: New plugin to generate progress bars (willu) 2008-09-09 14:44:58 -04:00
tags.mdwn move inline docs to ikiwiki/directive/inline 2008-09-11 19:39:35 -04:00
templates.mdwn fix links 2008-09-14 17:01:05 -04:00
tipjar.mdwn
tips.mdwn
todo.mdwn
translation.mdwn
usage.mdwn move inline docs to ikiwiki/directive/inline 2008-09-11 19:39:35 -04:00
users.mdwn
w3mmode.mdwn
whyikiwiki.mdwn
wikitemplates.mdwn move inline docs to ikiwiki/directive/inline 2008-09-11 19:39:35 -04:00
wishlist.mdwn