"GOT", but the "O" is a cute, smiling pufferfish. Index | Thread | Search

From:
Stefan Sperling <stsp@stsp.name>
Subject:
Re: convert gitconfig.c to utf8
To:
Omar Polo <op@omarpolo.com>
Cc:
gameoftrees@openbsd.org
Date:
Fri, 10 Feb 2023 11:39:58 +0100

Download raw body.

Thread
On Fri, Feb 10, 2023 at 11:03:23AM +0100, Omar Polo wrote:
> had some issue with these two files.  deadpixi' sam (from the `sam'
> package) deletes most of the file when saving it back to the disk, sam
> from plan9ports just deletes the "å" from the name.
> 
> anyone disagrees in converting it to utf8?  don't know how the diff
> would render (some clients may see the latin1 first and assume the
> wrong encoding.)  done with on Emacs with:
> 
> 	M-x set-buffer-file-coding-system RET utf-8-unix RET
> 
> got/got.1 is already encoded in utf8.

Yes, we prefer UTF-8. Latin1 has long been dead on OpenBSD.
This file was derived from isakmpd sources, written well before
OpenBSD had any UTF-8 support.

> diff /home/op/w/got
> commit - 08175cbb494791a8de66d4f28a3b38da7ca956e7
> path + /home/op/w/got
> blob - 9762b99158cbd5c99d5b4169ddb59dc85d9f747c
> file + lib/gitconfig.c
> --- lib/gitconfig.c
> +++ lib/gitconfig.c
> @@ -3,7 +3,7 @@
>  
>  /*
>   * Copyright (c) 1998, 1999, 2000, 2001 Niklas Hallqvist.  All rights reserved.
> - * Copyright (c) 2000, 2001, 2002 Håkan Olsson.  All rights reserved.
> + * Copyright (c) 2000, 2001, 2002 HÃ¥kan Olsson.  All rights reserved.
>   *
>   * Redistribution and use in source and binary forms, with or without
>   * modification, are permitted provided that the following conditions
> blob - 69dcf37239a234503d82e8eca0a650c347f67ee2
> file + lib/got_lib_gitconfig.h
> --- lib/got_lib_gitconfig.h
> +++ lib/got_lib_gitconfig.h
> @@ -3,7 +3,7 @@
>  
>  /*
>   * Copyright (c) 1998, 1999, 2001 Niklas Hallqvist.  All rights reserved.
> - * Copyright (c) 2000, 2003 Håkan Olsson.  All rights reserved.
> + * Copyright (c) 2000, 2003 HÃ¥kan Olsson.  All rights reserved.
>   *
>   * Redistribution and use in source and binary forms, with or without
>   * modification, are permitted provided that the following conditions
> 
>