D2057: rust implementation of hg status

yuja (Yuya Nishihara) phabricator at mercurial-scm.org
Wed Mar 21 00:44:37 EDT 2018


yuja added a comment.


  > I think the only place where you would need to do os-specific code is when
  >  doing serialization and serialization
  
  Yes, that will be feasible in strictly typed language like Rust.
  
  > which I think should be handled by https://doc.rust-lang.org/std/os/unix/ffi/trait.OsStringExt.html
  >  and https://doc.rust-lang.org/std/os/windows/ffi/trait.OsStringExt.html.
  
  Not true for Windows because Rust uses Unicode (UTF-16-ish) API, whereas
  Python 2 does ANSI. We need to convert a "wide" string to a locale-dependent string.
  
  Maybe the local-encoding crate will do that for us?

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D2057

To: Ivzhh, #hg-reviewers, kevincox
Cc: quark, yuja, glandium, krbullock, indygreg, durin42, kevincox, mercurial-devel


More information about the Mercurial-devel mailing list