2 Commits

Author SHA1 Message Date
6fdbf1d339 rp2: Always generate compile_commands.json
Signed-off-by: Matthias Blankertz <matthias@blankertz.org>
2025-12-20 21:26:54 +01:00
6ef3980243 oofatfs: Set API encoding to UTF-8
Since micropython uses a utf-8 string encoding, the FAT long file names
(represented as UCS-2 on disk) should be encoded as UTF-8 on the API.

This fixes the problem that files on VFAT that have umlauts in their
file names are not shown correctly on the micropython side.

Signed-off-by: Matthias Blankertz <matthias@blankertz.org>
2025-12-20 21:24:38 +01:00
2 changed files with 2 additions and 2 deletions

View File

@@ -164,7 +164,7 @@
/ ff_memfree() in ffsystem.c, need to be added to the project. */
#define FF_LFN_UNICODE 0
#define FF_LFN_UNICODE 2
/* This option switches the character encoding on the API when LFN is enabled.
/
/ 0: ANSI/OEM in current CP (TCHAR = char)

View File

@@ -61,7 +61,7 @@ HELP_BUILD_ERROR ?= "See \033[1;31mhttps://github.com/micropython/micropython/wi
all:
$(Q)[ -f ../../lib/pico-sdk/README.md ] || (echo -e $(HELP_PICO_SDK_SUBMODULE); false)
$(Q)[ -e $(BUILD)/Makefile ] || cmake -S . -B $(BUILD) -DPICO_BUILD_DOCS=0 ${CMAKE_ARGS}
$(Q)[ -e $(BUILD)/Makefile ] || cmake -S . -B $(BUILD) -DPICO_BUILD_DOCS=0 ${CMAKE_ARGS} -DCMAKE_EXPORT_COMPILE_COMMANDS=On
$(Q)$(MAKE) $(MAKE_ARGS) -C $(BUILD) || (echo -e $(HELP_BUILD_ERROR); false)
clean: