Index: uspace/lib/libc/Makefile.toolchain
===================================================================
--- uspace/lib/libc/Makefile.toolchain	(revision 482c86fe027ae8daeadd5905411883986a9524ec)
+++ uspace/lib/libc/Makefile.toolchain	(revision 44814b87de16b7d7e84bb8c660aa2b5c5269fbac)
@@ -27,8 +27,8 @@
 #
 
-CFLAGS = -fno-builtin -Wall -Werror-implicit-function-declaration\
-    -fexec-charset=UTF-8 -fwide-exec-charset=UTF-32 -finput-charset=UTF-8\
-    -Wmissing-prototypes -O3 -nostdlib -nostdinc -imacros\
-    $(LIBC_PREFIX)/../../../config.h -I$(LIBC_PREFIX)/include -pipe -g
+CFLAGS = -fno-builtin -Wall -Werror-implicit-function-declaration \
+	-fexec-charset=UTF-8 -fwide-exec-charset=UTF-32 -finput-charset=UTF-8 \
+	-Wmissing-prototypes -O3 -nostdlib -nostdinc -imacros \
+	$(LIBC_PREFIX)/../../../config.h -I$(LIBC_PREFIX)/include -pipe -g
 LFLAGS = -M -N $(SOFTINT_PREFIX)/libsoftint.a
 AFLAGS =
Index: uspace/lib/libc/generic/io/printf_core.c
===================================================================
--- uspace/lib/libc/generic/io/printf_core.c	(revision 482c86fe027ae8daeadd5905411883986a9524ec)
+++ uspace/lib/libc/generic/io/printf_core.c	(revision 44814b87de16b7d7e84bb8c660aa2b5c5269fbac)
@@ -249,5 +249,5 @@
  */
 static int print_str(char *str, int width, unsigned int precision,
-	uint32_t flags, printf_spec_t *ps)
+    uint32_t flags, printf_spec_t *ps)
 {
 	if (str == NULL)
@@ -297,14 +297,17 @@
  */
 static int print_wstr(wchar_t *str, int width, unsigned int precision,
-	uint32_t flags, printf_spec_t *ps)
+    uint32_t flags, printf_spec_t *ps)
 {
 	if (str == NULL)
 		return printf_putstr(nullstr, ps);
-
+	
+	if (*str == U_BOM)
+		str++;
+	
 	/* Print leading spaces. */
 	size_t strw = wstr_length(str);
 	if (precision == 0)
 		precision = strw;
-
+	
 	/* Left padding */
 	count_t counter = 0;
@@ -316,5 +319,5 @@
 		}
 	}
-
+	
 	/* Part of @a wstr fitting into the alloted space. */
 	int retval;
@@ -322,7 +325,7 @@
 	if ((retval = printf_wputnchars(str, size, ps)) < 0)
 		return -counter;
-
+	
 	counter += retval;
-
+	
 	/* Right padding */
 	while (width-- > 0) {
Index: uspace/lib/libc/include/string.h
===================================================================
--- uspace/lib/libc/include/string.h	(revision 482c86fe027ae8daeadd5905411883986a9524ec)
+++ uspace/lib/libc/include/string.h	(revision 44814b87de16b7d7e84bb8c660aa2b5c5269fbac)
@@ -41,4 +41,5 @@
 
 #define U_SPECIAL      '?'
+#define U_BOM          0xfeff
 
 /**< No size limit constant */
