Changeset 864b24de for introduction
- Timestamp:
- 01/16/2007 12:08:14 AM (17 years ago)
- Branches:
- 10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 6.2, 6.2.0, 6.2.0-rc1, 6.2.0-rc2, 6.3, 6.3-rc1, 6.3-rc2, 6.3-rc3, 7.10, 7.4, 7.5, 7.6, 7.6-blfs, 7.6-systemd, 7.7, 7.8, 7.9, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, basic, bdubbs/svn, elogind, gnome, kde5-13430, kde5-14269, kde5-14686, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, krejzi/svn, lazarus, lxqt, nosym, perl-modules, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, systemd-11177, systemd-13485, trunk, upgradedb, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
- Children:
- 4e88613
- Parents:
- 15b3bc29
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
introduction/important/locale-issues.xml
r15b3bc29 r864b24de 113 113 details.</para> 114 114 115 <para>In extreme cases, Windows encoding compatibility issues may be 115 <para>In extreme cases, Windows encoding compatibility issues may be 116 116 solved only by running Windows programs under 117 117 <ulink url="http://www.winehq.com/">Wine</ulink>.</para> … … 130 130 information is well-hidden on the page which specifies the behavior 131 131 of <application>Tar</application> and <application>Cpio</application> 132 programs. Some programs get it wrong by default (or simply don't 132 programs. Some programs get it wrong by default (or simply don't 133 133 have enough information to get it right). The result is that they 134 134 create filenames which are not subsequently shown correctly by … … 159 159 only correct in UTF-8 locales.</para> 160 160 161 <para>The general rule for avoiding this class of problems is to 161 <para>The general rule for avoiding this class of problems is to 162 162 avoid installing broken programs. If this is impossible, the 163 163 <ulink url="http://j3e.de/linux/convmv/">convmv</ulink> … … 169 169 filenames from a system using a different locale with a tool that 170 170 is not locale-aware (e.g., <xref linkend="nfs-utils"/> or 171 <xref linkend="openssh"/>). In order to avoid mangling non-ASCII 171 <xref linkend="openssh"/>). In order to avoid mangling non-ASCII 172 172 characters when transferring files to a system with a different 173 173 locale, any of the following methods can be used:</para> … … 179 179 </listitem> 180 180 <listitem> 181 <para>On the sending side, create a tar archive with the 181 <para>On the sending side, create a tar archive with the 182 182 <parameter>--format=posix</parameter> switch passed to 183 <command>tar</command> (this will be the default in a future 183 <command>tar</command> (this will be the default in a future 184 184 version of <command>tar</command>).</para> 185 185 </listitem> … … 230 230 screen into a complete mess.</para> 231 231 232 <para>Fixing this kind of problems is a tedious task from a 233 programmer's point of view, like all other cases of retrofitting new 234 concepts into the old flawed design. In this case, one has to redesign 235 all data structures in order to accommodate to the fact that a complete 236 character may span a variable number of "char"s (or switch to wchar_t 237 and convert as needed). Also, for every call to the "strlen" and 238 similar functions, find out whether a number of bytes, a number of 239 characters, or the width of the string was really meant. Sometimes it 232 <para>Fixing this kind of problems is a tedious task from a 233 programmer's point of view, like all other cases of retrofitting new 234 concepts into the old flawed design. In this case, one has to redesign 235 all data structures in order to accommodate to the fact that a complete 236 character may span a variable number of "char"s (or switch to wchar_t 237 and convert as needed). Also, for every call to the "strlen" and 238 similar functions, find out whether a number of bytes, a number of 239 characters, or the width of the string was really meant. Sometimes it 240 240 is faster to write a program with the same functionality from scratch. 241 241 </para>
Note:
See TracChangeset
for help on using the changeset viewer.