Skip to content
  • Georges Racinet's avatar
    Mercurial::Repository Fixed writing of binary files · ce44e19166a7
    Georges Racinet authored
    This is used, e.g, in Wiki attachments.
    With `File.write` (implicitely text), the binary string
    would give a conversion error to Encoding.default_external
    (usually UTF-8) whereas it goes through in `wb` mode, and I
    checked that actual unicode content is well supported.
    ce44e19166a7