/* Copyright (C) 1996-2025 Free Software Foundation, Inc. This file is part of the GNU C Library. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, see <https://www.gnu.org/licenses/>. */#ifdef HAVE_CONFIG_H#include<config.h>#endif#include<dirent.h>#include<errno.h>#include<fcntl.h>#include<stdbool.h>#include<stdlib.h>#include<string.h>#include<unistd.h>#include<sys/param.h>#include<sys/stat.h>#include<assert.h>#include<wchar.h>#include"localedef.h"#include"localeinfo.h"#include"locfile.h"#include"simple-hash.h"#include"locfile-kw.h"#include"md5.h"#define obstack_chunk_alloc xmalloc#define obstack_chunk_free free/* Temporary storage of the locale data before writing it to the archive. */staticlocale_data_tto_archive;intlocfile_read