Thanks, Ed. I just emailed the port maintainer separately to ask if they have any ideas. I think it would be better if abiword didn't crash even if the locale is unsupported.
FYI I tried setting LC_CTYPE to a supported value (en_US.UTF-8) while keeping LANG at the unsupported en_CA.UTF-8 but that wasn't enough. Admittedly I had read that FAQ entry and ignored the recommendation, based on some wishful thinking. Now I will take it more seriously. Off-topic: I'm curious if there's a clean way to convey my language preference to software from ports, or I should just accept that en_US is going to be my default. Not a big deal for en_CA, but what do French/Japanese/etc speakers do? On Mon, Dec 14, 2020 at 02:36:57PM +0000, Ed Gray wrote: > Hi James, > > I've noticed that in openbsd utf-8 is not universally supported like on > other open source systems. > > As far as I know you have to use en_US.UTF-8 or C for LC_CTYPE and I'm not > sure if the LANG environment variable is used either. > > Whether it should segfault in this case I don't know. > > Perhaps once you are running abiword it will have its own native language > support for documents and you won't need to set the LANG variable? > > See this FAQ: > > https://www.openbsd.org/faq/faq8.html > > Regards > Ed Gray > > On Sun, 13 Dec 2020, 11:03 pm James Cook, <falsif...@falsifian.org> wrote: > > > On Thu, Dec 03, 2020 at 04:48:04PM +0000, James Cook wrote: > > > I just installed abiword and also just upgraded to the latest snapshot > > > (and ran pkg_add -u). abiword immediately crashes when I run it. I have > > > never tried running abiword on OpenBSD before. Is it broken for others > > > or just for me? > > > > I just discovered it works if I set LANG to en_US.UTF-8 (in ksh, > > LANG=en_US.UTF-8 abiword). Normally I have LANG set to en_CA.UTF-8. > > Similar behaviour was reported in 2015: > > > > https://marc.info/?l=openbsd-ports&m=143301697319210&w=2 > > > > This works as a workaround, but I wonder what the problem is. > > > > -- > > James -- James