diff --git a/libc/runtime/paginate.c b/libc/stdio/paginate.c similarity index 95% rename from libc/runtime/paginate.c rename to libc/stdio/paginate.c index 090d98b4f..68a7552c6 100644 --- a/libc/runtime/paginate.c +++ b/libc/stdio/paginate.c @@ -42,7 +42,10 @@ void __paginate(int fd, const char *s) { write(tfd, s, strlen(s)); close(tfd); args[1] = tmppath; - if ((pid = vfork()) != -1) { + if ((pid = fork()) != -1) { + putenv("LC_ALL=C.UTF-8"); + putenv("LESSCHARSET=utf-8"); + putenv("LESS=-RS"); if (!pid) { execv(args[0], args); _Exit(127); diff --git a/tool/net/redbean.c b/tool/net/redbean.c index c7f9c6e64..ad4219530 100644 --- a/tool/net/redbean.c +++ b/tool/net/redbean.c @@ -145,7 +145,7 @@ STATIC_YOINK("ShowCrashReportsEarly"); #define REDBEAN "redbean" #endif -#define VERSION 0x020007 +#define VERSION 0x020008 #define HEARTBEAT 5000 /*ms*/ #define HASH_LOAD_FACTOR /* 1. / */ 4 #define MONITOR_MICROS 150000