[darcs-devel] [darcs #352] Patch metadata encoding.

via RT bugs at darcs.net
Sun Apr 17 11:32:51 PDT 2005


Sun Apr 17 14:32:49 2005: New ticket: 352.
Transaction: Ticket created by guest
       Queue: Darcs
     Subject: Patch metadata encoding.
       Owner: Nobody
  Requestors: tuomov at iki.fi
      Status: new
 Ticket <URL: http://bugs.darcs.net/.//Ticket/Display.html?id=352 >

Currently darcs stores patch name, author and comment in whatever 
encoding the author uses. This will clearly cause problems with projects 
where authors have diverse locales and names with native characters. 
Darcs should therefore

 * Store metadata in utf-8.
 * Expect input in locale encoding, except
 * Possibly input for --pipe in utf-8
 * Output metadata back in locale encoding for those commands and
   options that are meant to be human-readable. E.g. plain 'darcs
   changes' should be in locale encoding but --xml should be in utf-8.

(As a side note, date output by plain 'darcs changes' should also be in 
locale format! I once looked into patching it so, but it seemed an awful
lot of work without an ugly unsafePerformIO.)






More information about the darcs-devel mailing list