瀏覽代碼

add setlocale() (mostly for datetime function)

master
Aaron Marcher 8 年之前
父節點
當前提交
e1b89581d2
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 ID: 74B048E5C2474F9A
共有 1 個檔案被更改,包括 3 行新增0 行删除
  1. +3
    -0
      slstatus.c

+ 3
- 0
slstatus.c 查看文件

@@ -6,6 +6,7 @@
#include <ifaddrs.h>
#include <limits.h>
#include <linux/wireless.h>
#include <locale.h>
#include <netdb.h>
#include <pwd.h>
#include <signal.h>
@@ -634,6 +635,8 @@ main(int argc, char *argv[])
dpy = XOpenDisplay(NULL);
}

setlocale(LC_ALL, "");

while (!done) {
status_string[0] = '\0';



Loading…
取消
儲存