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
_______________________________________________
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel

Reply via email to