Blame


1 00dfcb92 2018-06-11 stsp /*
2 00dfcb92 2018-06-11 stsp * Copyright (c) 2018 Stefan Sperling <stsp@openbsd.org>
3 00dfcb92 2018-06-11 stsp *
4 00dfcb92 2018-06-11 stsp * Permission to use, copy, modify, and distribute this software for any
5 00dfcb92 2018-06-11 stsp * purpose with or without fee is hereby granted, provided that the above
6 00dfcb92 2018-06-11 stsp * copyright notice and this permission notice appear in all copies.
7 00dfcb92 2018-06-11 stsp *
8 00dfcb92 2018-06-11 stsp * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9 00dfcb92 2018-06-11 stsp * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10 00dfcb92 2018-06-11 stsp * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11 00dfcb92 2018-06-11 stsp * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12 00dfcb92 2018-06-11 stsp * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13 00dfcb92 2018-06-11 stsp * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14 00dfcb92 2018-06-11 stsp * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15 00dfcb92 2018-06-11 stsp */
16 00dfcb92 2018-06-11 stsp
17 7b390526 2018-12-23 stsp /* Return a sanitized UTF-8 string which is safe to write to a terminal. */
18 00dfcb92 2018-06-11 stsp const struct got_error *got_mbsavis(char**, int *, const char *);
19 7b390526 2018-12-23 stsp
20 7b390526 2018-12-23 stsp /* Indicate whether the current locale supports UTF-8. */
21 84717ec7 2018-09-02 stsp int got_locale_is_utf8(void);