Patch to add support for Unicode BMP plane (Plane 0) on Linux fbcon
TTY
Patches are extracted from Gentoo-zh patched kernel. For details on the extraction process and how to apply them on top of an upstream Linux kernel refer to https://www.fxhu.tk/2015/09/18/git-format-patch-cjktty
Original post was once lost and need to search it again on Google's cache, so here are the basic instructions to update the patch for upcoming Linux kernel versions:
-
Get Linux kernel source code. Linux kernel commits history is HUGE, so we only fetch the only last one:
git clone --branch v4.8 --depth 1 https://github.com/torvalds/linux.git
-
Test the patch:
cd linux git apply --whitespace=warn --stat < /path/to/cjktty.patch git apply --whitespace=warn --check < /path/to/cjktty.patch
-
Fix patch until there's no failures
-
Apply the patch and let it auto-adjust:
git apply --whitespace=warn < /path/to/cjktty.patch
-
Commit the changes of the patch:
git add . git commit -m "cjktty patch for Linux 4.8.1"
-
Extract the patch after applied to the kernel:
git diff HEAD~1 -- > cjktty.patch