[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Gnu-arch-users] How does arch/tla handle encodings?
From: |
John Meinel |
Subject: |
Re: [Gnu-arch-users] How does arch/tla handle encodings? |
Date: |
Fri, 27 Aug 2004 11:59:46 -0500 |
User-agent: |
Mozilla Thunderbird 0.7 (Windows/20040616) |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
In most cases, I think it just depends on what the other tools do. Most
times, arch doesn't really care. It just asks diff to determine what to do.
I'm guessing the standard GNU diff treats a UTF-16 file as binary (since
for English text every other character is null.)
You can argue for having a better diff tool, but I don't think the
revision control system itself should care too much about what is in the
file.
I'm thinking that you don't really want tla to say "Oh, you're using
UTF-8, let me translate all of the UTF-16 files into your native encoding."
Because more than likely you need UTF-16 for whatever is using the code,
and translating is *not* what you want.
There would be some niceties. Like if tla stored everything in one
format (like UTF-8), then if someone locally changed the encoding, when
checked in, the diff could be smart, re-encode it, and then your diff
would not include a lot of spurious changes just because of the
encoding. (Kind of like CVS does with converting line endings on win32)
If you want that behavior, you can write an arch hook that converts all
text files into UTF-8 encoding before they get checked in.
But I don't think that should be the stock tla behavior.
John
=:->
PS> Does GNU diff handle UTF-8, or is it ASCII/some encoding only?
Vaclav Haisman wrote:
| I agree with Marcus. File's encoding is imho metadata as much as
permisions
| are. For example how does tla/arch treat UTF-16 files? As text or as
binary
| files? The ability to specify encoding should be present.
|
| Vaclav Haisman
|
|
|
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Cygwin)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFBL2iCJdeBCYSNAAMRAtFoAJ9fCoN8a2EpWRZYW/XSvnu+6PJ0rQCfZwPd
e4do9uQ921sHgr+qQPnVmH0=
=rO1o
-----END PGP SIGNATURE-----
- Re: [Gnu-arch-users] How does arch/tla handle encodings?, (continued)
- Re: [Gnu-arch-users] How does arch/tla handle encodings?, Andrew Suffield, 2004/08/27
- Re: [Gnu-arch-users] How does arch/tla handle encodings?, Vaclav Haisman, 2004/08/27
- Re: [Gnu-arch-users] How does arch/tla handle encodings?, Andrew Suffield, 2004/08/27
- Re: [Gnu-arch-users] How does arch/tla handle encodings?, Marcus Sundman, 2004/08/27
- Re: [Gnu-arch-users] How does arch/tla handle encodings?, Andrew Suffield, 2004/08/27
- Re: [Gnu-arch-users] How does arch/tla handle encodings?, Marcus Sundman, 2004/08/27
- Re: [Gnu-arch-users] How does arch/tla handle encodings?, Jan Hudec, 2004/08/28
- Re: [Gnu-arch-users] How does arch/tla handle encodings?, Marcus Sundman, 2004/08/28
- Re: [Gnu-arch-users] How does arch/tla handle encodings?, Jan Hudec, 2004/08/28
- Re: [Gnu-arch-users] How does arch/tla handle encodings?, Marcus Sundman, 2004/08/28
- Re: [Gnu-arch-users] How does arch/tla handle encodings?,
John Meinel <=
- Re: [Gnu-arch-users] How does arch/tla handle encodings?, Marcus Sundman, 2004/08/27
Re: [Gnu-arch-users] How does arch/tla handle encodings?, Marcus Sundman, 2004/08/27
- Re: [Gnu-arch-users] How does arch/tla handle encodings?, Andrew Suffield, 2004/08/27
- Re: [Gnu-arch-users] How does arch/tla handle encodings?, Marcus Sundman, 2004/08/27
- [Gnu-arch-users] Re: How does arch/tla handle encodings?, Stefan Monnier, 2004/08/27
- Re: [Gnu-arch-users] Re: How does arch/tla handle encodings?, Marcus Sundman, 2004/08/27
- Re: [Gnu-arch-users] Re: How does arch/tla handle encodings?, Michael Poole, 2004/08/27
- Re: [Gnu-arch-users] Re: How does arch/tla handle encodings?, Esben Mose Hansen, 2004/08/28
- Re: [Gnu-arch-users] Re: How does arch/tla handle encodings?, Jan Hudec, 2004/08/28
- Re: [Gnu-arch-users] Re: How does arch/tla handle encodings?, Esben Mose Hansen, 2004/08/28