Re: Git-mediawiki : Encoding problems in perl

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

 



On Wed, Jun 08, 2011 at 08:03:26PM +0200, JÃrÃmie NIKAES wrote:

> - I pull the "EtÃ.mw" file from mediawiki
> - I edit it
> - When I commit it I get this message from git :
> [master sha1] commit message
> 1 files changed [...]
> create mode 100644 "Bl\303\251.mw"
> 
> As a result, when I parse commit information, the title of the file is
> indeed Bl\303\251... so a new page is created on the mediawiki.

Ick. I hope you aren't parsing the output of "git commit"; it's not
guaranteed to be stable.

But if you are parsing "diff", then yes, filenames with high-bit
characters (or special characters like tab or double-quote) may be
quoted C-style, and you should be unquoting them. Or, as Matthieu
suggested, use "-z" to get a NUL-terminated, non-quoted version.

-Peff
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]