diff options
| author | sfcben <sfcben@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2006-05-01 07:18:33 +0000 |
|---|---|---|
| committer | sfcben <sfcben@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2006-05-01 07:18:33 +0000 |
| commit | da7371c87927b51cda857ce98cf95bfb45a0efde (patch) | |
| tree | 90c7fd8a1bbb6eb9516b44b64dc8057bab6bb7b6 /docs/dev | |
| parent | 8bf61e90519b0bd994b4ce1565f382593faaf2e6 (diff) | |
| download | docutils-da7371c87927b51cda857ce98cf95bfb45a0efde.tar.gz | |
Document the localized dates problem and workaround.
The placement is perhaps awkward but I wanted non-developers
to be able to stop reading before Developer Access.
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@4523 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'docs/dev')
| -rw-r--r-- | docs/dev/repository.txt | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/docs/dev/repository.txt b/docs/dev/repository.txt index ed6c29ab9..c4b71e3d9 100644 --- a/docs/dev/repository.txt +++ b/docs/dev/repository.txt @@ -72,6 +72,32 @@ type :: svn update +Workaround for Localized Dates +------------------------------ + +If you have a non-english locale, you should perform all check-out and update +operations with ``LC_TIME=C`` in the environment. Either set it in your shell +init file, or (if you like localized dates in other programs) always do :: + + env LC_TIME=C svn checkout ... + env LC_TIME=C svn update ... + +This applies both to anonymous and developer access. + +The reason is that subversion localizes its expansion of the ``Date`` +keyword, which may result in non-ASCII characters in other locales. +Non-ASCII characters upset Python, even if they only appear in comments. +Adding an encoding declaration to all Python sources doesn't help because +the declaration would be a fixed part of the file, while the date encoding +could be different for every person checking out the code... + +Arguably, the Right Thing would be for subversion to understand file +encodings: convert file contents, localize keywords and expand an Encoding +keyword to reflect the encoding used. But for now, ``LC_TIME=C`` fixes this +by disabling the translation of the date (the current time zone is still +respected). + + Developer Access ---------------- @@ -89,6 +115,8 @@ working copy, type :: svn checkout svn+ssh://<user>@svn.berlios.de/svnroot/repos/docutils/trunk \ docutils +If you have a non-english locale, set ``LC_TIME=C`` as described above. + If you previously had an anonymous working copy and gained developer access, you can switch the URL associated with your working copy with this command (executed in the root of your working copy) :: |
