hgserve encoding

Jérôme Godbout jerome at bodycad.com
Fri Aug 11 11:39:19 EDT 2017


Thanks to clarify the things a bits, I got confuse with the
"Data that Mercurial does locale conversion on includes things like user
names and commit messages...In the case of data taken from files, we should
generally assume that the contents are in the cp1252 charset."
So I wasn't sure what was happening with that. I'm glad it use byte stream
under the hood then. So what is the hgserv.config encoding used for
exactly? is it only web data stream that is mark as encoded into particular
way and it doesn't depend if the repos source? So a repos made under
Windows and Linux would be exactly the same and the OS/FS doesn't matter
for hg repos and access, except the commit metadata (I guess this is true
with what you said).


[image: bodycad] <https://www.bodycad.com/>
Jerome Godbout
Software Developer
2035 rue du Haut-Bord, Québec, QC, Canada. G1N 4R7
T:  +1 418 527-1388
E: jerome at bodycad.com
www.bodycad.com

The contents of this email message and any attachments are intended solely
for the addressee(s) and may contain confidential and/or privileged
information and may be legally protected from disclosure. If you are not
the intended recipient of this message or their agent, or if this message
has been addressed to you in error, please immediately alert the sender by
reply email and then delete this message and any attachments. If you are
not the intended recipient, you are hereby notified that any use,
dissemination, copying, or storage of this message or its attachments is
strictly prohibited.

Le contenu de ce message et les pièces jointes sont destinés uniquement
pour le(s) destinataire(s) et peuvent contenir des informations
confidentielles et / ou privilégiées qui peuvent être protégées légalement
contre toute divulgation. Si vous n'êtes pas le destinataire de ce message
ou son agent, ou si ce message vous a été adressé par erreur, s’il vous
plaît avertir immédiatement l'expéditeur par courriel de réponse, puis
supprimer ce message et les pièces jointes. Si vous n'êtes pas le
destinataire prévu, vous êtes par la présente informé que toute
utilisation, diffusion, copie, ou stockage de ce message ou de ses pièces
jointes est strictement interdit.

On Fri, Aug 11, 2017 at 11:14 AM, Yuya Nishihara <yuya at tcha.org> wrote:

> On Thu, 10 Aug 2017 11:58:53 -0400, Jérôme Godbout wrote:
> > I'm not sure if I have find every problems:
> > 1. I have remove the hgweb.config encoding and let him choose.
> > 2. There was also a subrepos that was not copied to the new file server
> > (the personne who did it though that this subrepos is no more used, so no
> > need to copy it! D'oh! still the error is a bit misleading, subrepos not
> > found could have been a funnier error message).
> > Seem to work so far, but I didn't use it much so far. Thanks for the
> > answer, yes we have non ascii file and characters inside some file (Qml
> > file are utf-8, i18n file name might too have non ascii characters).
> >
> > Would be nice if mercurial would be utf-8 all the way. And only the local
> > update would convert to windows encoding from/to local files only (.hg
> into
> > UTF-8 encoding). Would simplify the encoding cross platform mind puzzle.
> I
> > guess that's wishful thinking and would result into other problems, hope
> > one day Windows handle UTF-8 properly all the way around. Maybe I just
> > don't get all the encoding difference with hg and windows/linux, but I
> > still have hard time understand what is in which encoding for
> crossplatform
> > repos, https://www.mercurial-scm.org/wiki/CharacterEncodingOnWindows
> > confuse me more then it help
>
> No idea where you've found the encoding problem. Mercurial treats
> everything
> (except for commit metadata) as bytes. Filenames are bytes and contents are
> also bytes.
>
> Also, UTF-8 can't be a silver bullet. It's reasonable choice only if the
> input
> is a valid unicode (not apply to all Windows encodings.)
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mercurial-scm.org/pipermail/mercurial/attachments/20170811/ffd58603/attachment.html>


More information about the Mercurial mailing list