rjkroege/edwood

fn / emoji key in BigSur crashes Edwood

Opened this issue · 0 comments

Try to enter an emoji in Edwood using the fn/globe key on MacOS BigSur (foolish of me perhaps) crashes Edwood

goroutine 67 [running, locked to thread]:
runtime/debug.Stack(0x14000e76920, 0x0, 0x1)
	/usr/local/go/src/runtime/debug/stack.go:24 +0x88
runtime/debug.PrintStack()
	/usr/local/go/src/runtime/debug/stack.go:16 +0x20
main.openfile(0x14000e76920, 0x1400010e2d0, 0x140011940c0)
	/Users/rjkroege/tools/edwood/look.go:627 +0x304
main.look3(0x14000e76920, 0x22, 0xa0, 0x0)
	/Users/rjkroege/tools/edwood/look.go:164 +0xd8
main.MovedMouse(0xa8f, 0x1c8, 0x4, 0xff79a2bb)
	/Users/rjkroege/tools/edwood/acme.go:457 +0x454
main.mousethread(0x102807af8, 0x1400009c008)
	/Users/rjkroege/tools/edwood/acme.go:317 +0x29c
created by main.main.func2
	/Users/rjkroege/tools/edwood/acme.go:186 +0x744
stringwidth: bad character set for rune U+DE00 in /mnt/font/GoRegular/26a/font
panic: text.delete

goroutine 68 [running]:
main.(*Text).Delete(0x14001279c20, 0x0, 0x78, 0x14000000001)
	/Users/rjkroege/tools/edwood/text.go:556 +0x80
main.(*Window).setTag1(0x14001279c00)
	/Users/rjkroege/tools/edwood/wind.go:524 +0x54c
main.(*Window).SetTag.func1(0x14001279d20)
	/Users/rjkroege/tools/edwood/wind.go:459 +0x3c
main.(*File).AllText(0x14000818600, 0x1027f5fa0)
	/Users/rjkroege/tools/edwood/file.go:310 +0x50
main.(*Window).SetTag(0x14001279c00)
	/Users/rjkroege/tools/edwood/wind.go:457 +0x38
main.(*Window).Type(0x14001279c00, 0x14001279c20, 0xde00)
	/Users/rjkroege/tools/edwood/wind.go:403 +0x3c
main.(*Row).Type(0x1029d95a0, 0x1400000de00, 0x333, 0x104, 0x14001279c20)
	/Users/rjkroege/tools/edwood/row.go:287 +0x194
main.keyboardthread(0x102807af8, 0x1400009c008)
	/Users/rjkroege/tools/edwood/acme.go:484 +0x17c
created by main.main.func2
	/Users/rjkroege/tools/edwood/acme.go:187 +0x76c

The popup window isn't in the right place either but that's not-working as expected.