TomoeMami
TomoeMami
`/etc/passwd` is corrupted, just fix it manually. Change `/etc/passwd` from this: ``` root:$6$yo7XggtxSEFO8/Fg$lusug8IlSvSMQdMGwUMpiJ2wkeC4gvSqjHawgDmfzKFhPcTTCn.pyUosKiIjhWBLAKvchaFqyx6MkHt6tIfsj1:19144:::::: bin:!*:19024:::::: …… {username}:$6$b2RkmYxsuRNCF3qr$mY.4Tr6jZYuSPjkhMJnpkkMk8K8X4de0um8rhFzw6B1MCXCAsJ0V.jMg9pCv/acXBCynLy1kDGZPk1hKM9h7M1:19144:0:99999:7::: ``` into this: ``` root:x:0:0:Super User:/root:/bin/bash bin:!*:19024:::::: …… {username}:x:1000:1001::/home/{username}:/bin/bash ```
  repost pic
> 我也遇到此問題,改成下列程式即可 > > ``` > loop = asyncio.new_event_loop() > loop.run_until_complete(main()) > ``` ``` Error in atexit._run_exitfuncs: Traceback (most recent call last): File "/home/ubuntu/.local/lib/python3.8/site-packages/bilibili_api/utils/network.py", line 26, in __clean loop =...
``` Welcome to the Emacs shell ~/.emacs.d $ (length "周二 6 二月 2024") 12 ~/.emacs.d $ (string-bytes "周二 6 二月 2024") 20 ~/.emacs.d $ (length "Tue 6 Feb 2024") 14...
 This is what I get with `string-width`. Maybe `string-width` is a better solution.
 Set font to `Sarasa Term SC` or other mono font can help align
 Not so good. For me, a Windows Emacs user with CJK characters, it seems that `string-width` > `string-bytes` > `length` > `string-pixel-width`.

I set font-size to 32, will this effect `string-pixel-width` ?
Yes, but `string-pixel-width` is affected by the font size.  this is the `set-font` function: ``` (defun set-font (english chinese english-size chinese-size) (set-face-attribute 'default nil :font ;; (format "%s:pixelsize=%d" english...