Programming languages, networks, linux, org-mode, whatever…

Mostly in english, but sometimes in french.

As explained in this post I wanted to patch a symbol in a binary file, and for that needed to echo a specific byte value (xEA) into a sed command appearing in a Makefile recipe. Now, you may be aware that the echo command lives in /bin/, but the shell also provide an echo shell builtin. Let's see how we can echo a byte with hex value EA in both cases:

Read More…

Patching a function name in an object file

Non ASCII characters in C identifiers According to cppreference.com unicode characters can appear in C identifiers, using the \u and \U escape notation. In practice, it seems they can also be used directly with UTF-8 encoding: For example, the following UTF-8 file is accepted both by gcc 13 and clang 14: #include <stdio.h> void taille_fenêtre(int dx, int dy) { fprintf(stderr, "::taille_fenêtre %i %i\n",dx, dy); } This file is compiled to an object file that will contain the (UTF-8 encoded) global symbol taille_fenêtre for the above function.

Read More…

About this site

(last updated )

Technical notes about how this site is made (spoiler: hugo, emacs and org-mode).

Read More…

Testing URLs

(last updated )

Testing hugo's (mis)handling of org "plain URIs links"

There's a unused Lenovo "tablet-PC" at home (tablet + keyboard dock). It's "running" Windows 10 (actually it's very slow, plus Windows regularly asks for upgrading, and then fails…) I never used it, but as everybody at home gave up on it, I decided to give it a try on Linux. Here're the specs: lenovo ideapad MIIX 300-10IBY Model name: 80NR CPU: Intel Atom Z3735F @ 1.33Ghz 64 bits RAM: 2Go So this is actually a x64 CPU.

Read More…