#5409 closed defect (fixed)

Fix C.UTF-8 locale definition

Reported by: Xi Ruoyao Owned by: Douglas R. Reno
Priority: normal Milestone: 12.1
Component: Book Version: git
Severity: normal Keywords:
Cc:

Description (last modified by Xi Ruoyao)

In Glibc we have:

localedef -i POSIX -f UTF-8 C.UTF-8 2> /dev/null || true

This is causing a test failure in epiphany-45.2:

not ok /src/ephy-encodings/create - epiphany:ERROR:../tests/ephy-encodings-test.c:47:test_ephy_encodings_create: assertion failed (ephy_encoding_get_collation_key (encoding) == "Unicode (UTF-8)"): ("Wpkeqfg\"*WVH/:+" == "Unicode (UTF-8)")
Bail out!

To me we should just use

localedef -i C -f UTF-8 C.UTF-8

instead. It fixes the epiphany test failure for me. And it also removes the necessity of 2>/dev/null || true.

Change History (4)

comment:1 by Xi Ruoyao, 11 months ago

Type: enhancementdefect

comment:2 by Xi Ruoyao, 11 months ago

Description: modified (diff)

comment:3 by Douglas R. Reno, 11 months ago

Owner: changed from lfs-book to Douglas R. Reno
Status: newassigned

I'll do this alongside epiphany

comment:4 by Douglas R. Reno, 11 months ago

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.