git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[JGIT PATCH 0/4] Decodings

From
Robin Rosenberg <robin.rosenberg@dewire.com>
Date
Oct 12, 2008, 22:50 UTC
Message-ID
<1223851860-13068-1-git-send-email-robin.rosenberg@dewire.com>

These patches might be slightly controversial. Since there is no perfect solution, we may want to try something that works to some extent and gives what a user might expect, i.e. presenting to a viewer the same glyphs that the user who entered them saw, to the extent it is possible.

We already handle commit messages like this for the old style objects (sort of). This patch set also affects other data like refs. Currenly no sane solution exists in git so nothing really works well outside the non-ascii range for refs anyway so we can discuss what should happen with refs that contain non-ascii characters. The best thing is to avoid them, but some of us live in countries with funny dots in what we do and other have even stranger ways of expressing what they do, and hence things like branch names etc.

Legacy SCM to GIT conversion programs seem to do every variation of transcoding/ not transcoding commit messages and file names to UTF-8 so there is an issue here. The nice thing about transcoding filenames to UTF-8 is that they work on all platforms. A non-UTF-8 filename in a UTF-8 environement doesn't. In particular such filenames are more or less inaccessible to a Java programs. For the reverse case it looks really bad. C Git currently does not transform file names. Missing from this patch set is test cases. As it is quite undefined in git what happens that is sort of ok so far, but I'd like to define it too in the same way.

-- robin
Next: Robin Rosenberg
Message 1 of 8 in “Decodings”
  1. 0/4 DecodingsRobin Rosenberg, Oct 12, 2008
  2. 1/4 log command: Use explicit US locale for datesRobin Rosenberg, Oct 12, 2008
  3. 2/4 jgit programs: Use i18n.logOutputEncoding or user's locale for outputRobin Rosenberg, Oct 12, 2008
  4. 3/4 The git config file is case insensitiveRobin Rosenberg, Oct 12, 2008
  5. 4/4 Intelligent parsing of ambiguously encoded meta data.Robin Rosenberg, Oct 12, 2008
  6. Shawn O. PearceOct 13, 2008
  7. Robin RosenbergOct 13, 2008
  8. Shawn O. PearceOct 13, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.