equal
deleted
inserted
replaced
203 except LookupError as k: |
203 except LookupError as k: |
204 raise error.Abort(k, hint=b"please check your locale settings") |
204 raise error.Abort(k, hint=b"please check your locale settings") |
205 |
205 |
206 |
206 |
207 def fromlocal(s): |
207 def fromlocal(s): |
208 # type: (bytes) -> Text |
208 # type: (bytes) -> bytes |
209 """ |
209 """ |
210 Convert a string from the local character encoding to UTF-8 |
210 Convert a string from the local character encoding to UTF-8 |
211 |
211 |
212 We attempt to decode strings using the encoding mode set by |
212 We attempt to decode strings using the encoding mode set by |
213 HGENCODINGMODE, which defaults to 'strict'. In this mode, unknown |
213 HGENCODINGMODE, which defaults to 'strict'. In this mode, unknown |