Release redbean v3.0.0

This commit is contained in:
Justine Tunney 2024-08-17 06:45:35 -07:00
parent eb6e96f036
commit ca2c30c977
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
5 changed files with 36 additions and 40 deletions

View file

@ -71,6 +71,7 @@
#include "libc/stdio/hex.internal.h"
#include "libc/stdio/rand.h"
#include "libc/stdio/stdio.h"
#include "libc/str/locale.h"
#include "libc/str/slice.h"
#include "libc/str/str.h"
#include "libc/str/strwidth.h"
@ -169,7 +170,8 @@ __static_yoink("blink_xnu_aarch64"); // is apple silicon
#define REDBEAN "redbean"
#endif
#define VERSION 0x020200
// XXYYZZ
#define VERSION 0x030000
#define HASH_LOAD_FACTOR /* 1. / */ 4
#define READ(F, P, N) readv(F, &(struct iovec){P, N}, 1)
#define WRITE(F, P, N) writev(F, &(struct iovec){P, N}, 1)
@ -2545,7 +2547,7 @@ static char *CommitOutput(char *p) {
static char *ServeDefaultErrorPage(char *p, unsigned code, const char *reason,
const char *details) {
p = AppendContentType(p, "text/html; charset=ISO-8859-1");
p = AppendContentType(p, "text/html; charset=UTF-8");
reason = FreeLater(EscapeHtml(reason, -1, 0));
appends(&cpm.outbuf, "\
<!doctype html>\r\n\
@ -7428,6 +7430,9 @@ int main(int argc, char *argv[]) {
ShowCrashReports();
#endif
// just in case
setlocale(LC_ALL, "C.UTF-8");
LoadZipArgs(&argc, &argv);
RedBean(argc, argv);