locale-archive: Dateiformat, Funktion?

Smalltalk
Antworten
bullgard
Beiträge: 1642
Registriert: 14.09.2012 23:03:01

locale-archive: Dateiformat, Funktion?

Beitrag von bullgard » 02.06.2016 06:27:36

Hallo debianforum.de,
[Debian stable]

Code: Alles auswählen

~$ file /usr/lib/locale/locale-archive
gibt aus:
/usr/lib/locale/locale-archive: locale archive 11 strings
Was bedeutet diese Ausgabe? Diese Datei ist bei mir 1,6 MB groß. Wenn ich mir den Inhalt im mc angucke, ist sie größtenteils leer.

Code: Alles auswählen

~$ man locale-archive
Kein Handbucheintrag für locale-archive vorhanden
Irgendwo habe ich gelesen:
= the usual default locale archive location

Code: Alles auswählen

~$ man localedef
gibt aus:
A locale archive is a memory-mapped file which contains all the system-provided locales; it is used by all localized programs when the environment variable LOCPATH is not set.
Die Beschreibung https://en.wikipedia.org/wiki/Memory-mapped_file
A memory-mapped file is a segment of virtual memory that has been assigned a direct byte-for-byte correlation with some portion of a file or file-like resource. This resource is typically a file that is physically present on-disk, but can also be a device, shared memory object, or other resource that the operating system can reference through a file descriptor. Once present, this correlation between the file and the memory space permits applications to treat the mapped portion as if it were primary memory.
ist mir viel zu allgemein und vage für das Verstehen von locale-archive. Welche Daten wurden hier in welches Dateiformat transformiert?
Mit freundlichen Grüßen
bullgard

eggy
Beiträge: 3331
Registriert: 10.05.2008 11:23:50

Re: locale-archive: Dateiformat, Funktion?

Beitrag von eggy » 02.06.2016 10:16:03

bullgard: memory mapped sagt doch schon alles Nötige. Das Ding wird "im Arbeitsspeicher eingebunden" und das "Dateiformat" ist "Arbeitsspeicher". Wenn Dich das wirklich interessiert: man 2 mmap und apt-get sources locales, hier inbesondere der source zu localedef.
Um zu entscheiden, ob ne Datei "leer" ist solltest Du Dich nicht auf mc verlassen. Versuch mal nen Hexeditor/viewer, als gui Variante mag ich ghex ganz gerne. Das versteht man auch "ohne Fachwissen" ganz gut ;)

Benutzeravatar
MSfree
Beiträge: 10777
Registriert: 25.09.2007 19:59:30

Re: locale-archive: Dateiformat, Funktion?

Beitrag von MSfree » 02.06.2016 11:17:41

eggy hat geschrieben:Um zu entscheiden, ob ne Datei "leer" ist solltest Du Dich nicht auf mc verlassen. Versuch mal nen Hexeditor/viewer
mc bringt einen Hex-Viewer/Editor mit :wink:

Antworten