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

i18n, alternative solution

From
Robin Rosenberg <robin.rosenberg.lists@dewire.com>
Date
Jan 1, 2007, 14:47 UTC
Message-ID
<200701011547.48697.robin.rosenberg.lists@dewire.com>
Hi and Happy New Year

Things are happening wrt to support for working with multiple locales, which is nice to see. I've not had time to follow the development so these comments (and code) may be considered somewhat late in the process.

What disturbes me is the complexity that the approach of storing multiple encodings in the same repository results in. I was hacking another solution earlier this autumn, that takes another approach, i.e. UTF-8 is the internal encoding. period. If you want to working with anything else, you convert on input and output. The code is very simply since it has few cases to consider and I don' t need to store encoding anywhere. What is missing is a flags to disable i18n for a flag (or enable it).

The uglyness is the filename parts since I catch all filename operations and not only the ones I need. The target wasn't final code, but to prove that it could be done.

The focus is on file names, but commit messages were included since it was so simple. You can get the code at http://rosenberg.homelinux.net/repos/GIT.git on the branch i18n. I modded the testcases to verify that GIT works after the patches, but one would probably prefer to write new test cases for UTF-8.

5d73e28397f7ec0f85fcb8e31e91326afbcfea19 is the last commit that executes all test cases successfully.

I could send the code as patches if you like, not on top of the lastest version though, but 1.4.2-something,

-- robin
Next: Junio C Hamano
Message 1 of 3 in “i18n, alternative solution”
  1. Robin RosenbergJan 1, 2007
  2. Junio C HamanoJan 1, 2007
  3. Robin RosenbergJan 7, 2007

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.