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

Re: [PATCH] git-p4: import utf16 file properly

From
PWPete Wyckoff <pw@padd.com>
Date
Sep 18, 2011, 01:19 UTC
Message-ID
<20110918011942.GA13702@arf.padd.com>
In-Reply-To
<CANeU7QnPqJ+igcmS1JX_vasCXr+Wpcx2b4Z-sy_=0qKEkG+v_w@mail.gmail.com>
git@chrisli.org wrote on Wed, 14 Sep 2011 11:39 -0700:
Show 13 quoted lines
> On Wed, Sep 14, 2011 at 11:29 AM, Chris Li <git@chrisli.org> wrote:
> >> Does this change do the right thing with RCS keywords in UTF16 files?
> >
> > I don't know what is the rules about the RCS keyword in UTF16 files.
> 
> I did a little bit research and found this:
> 
> http://www.perforce.com/perforce/doc.current/manuals/p4guide/ab_filetypes.html
> 
> RCS keyword expand should only happen for "+k" or "+ko" modifiers.
> There for, "utf16" files without modifier should not be converted.
> In that regard, the patch is correct. But both the original and patched version
> did not handle "utf16+k" type of files. I still consider it as a separate issue.

Your patch looks good and this all makes sense. I redid it, adding a test case, and some more patches to clean up some of the filetype detection code. I'll send it out for review soon here.

Luke:  thanks for the comments; they prompted me to think
about keywords and beyond.
		-- Pete
Previous: Chris LiNext: Luke Diamand
Message 5 of 6 in “git-p4: import utf16 file properly”
  1. git-p4: import utf16 file properlyChris Li, Sep 13, 2011
  2. Luke DiamandSep 14, 2011
  3. Chris LiSep 14, 2011
  4. Chris LiSep 14, 2011
  5. Pete WyckoffSep 18, 2011
  6. Luke DiamandSep 14, 2011

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.