gnu-arch-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnu-arch-users] How does arch/tla handle encodings?


From: Marcus Sundman
Subject: Re: [Gnu-arch-users] How does arch/tla handle encodings?
Date: Fri, 27 Aug 2004 21:35:49 +0300
User-agent: KMail/1.7

On Friday 27 August 2004 21:05, John Meinel wrote:
> Marcus Sundman wrote:
> >>| That is a good example of where the encoding of a file is part of
> >>| that file's semantics. Of course no transcoding would be done for
> >>| such files. (Some verification _could_ be done, though. Since all
> >>| byte sequences aren't
> >>| valid UTF-8 string it is particularly important for such files to be
> >>| validated.)
> >>
> >>If this really needed to be done, couldn't this be implemented as a
> >> part of the Arch hook?
> >
> > Well, it's better that it's done on the client than not at all, but if
> > you want to ensure the validity you have to do it on the server.
> > However, if you don't have to ensure the validity then you won't have
> > to do any checking at all. Does that answer your question?
>
> One big point of Arch is that it uses a dumb file-system as the
> "server", so everything *has* to be done by the clients.

I don't know much about arch, but if there is a project then shouldn't there 
be support for having a project leader who is in charge of what is allowed 
into the official repository? The other team members can have whatever 
setups they want, but the merging into the official repository could be 
done by the project leader who can enforce whatever properties he wants, 
right?

> Now, maybe it could be added as part of the repository (or meta-data as
> you say) that this file needs to be in a certain encoding. But how much
> work is it to set these fields, or to change them, and how do you handle
> when a file changes encoding?

Well, why not handle it like any other metadata, such as filename, 
permissions, etc.?

> It's kind of like, "Assume the developer knows what they are doing,
> because I could make things much worse if I mess up."

But when I try to get the UTF-8 file out in my laptop's win-1252 encoding 
it's kind of like, "in your dreams, luser, you get it in whatever encoding 
it happens to be in and I won't even tell you which encoding that is!" ;-)

> > I think a project leader should be able to enforce such a policy for
> > his own project.
>
> Well, it would be nice to do something like this. But is it handled in
> any other revision control system? Obviously CVS doesn't, does bk, svn,
> aegis or any of the others?

I don't know about the others, but how about CVSROOT/cvswrappers in cvs?


- Marcus Sundman




reply via email to

[Prev in Thread] Current Thread [Next in Thread]