mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-28 15:28:30 +00:00
Release redbean v3.0.0
This commit is contained in:
parent
eb6e96f036
commit
ca2c30c977
5 changed files with 36 additions and 40 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue