| 1 |
# French translation of manpages |
| 2 |
# This file is distributed under the same license as the manpages-l10n package. |
| 3 |
# Copyright © of this file: |
| 4 |
# Christophe Blaess <https://www.blaess.fr/christophe/>, 1996-2003. |
| 5 |
# Stéphan Rafin <[email protected]>, 2002. |
| 6 |
# Thierry Vignaud <[email protected]>, 1999, 2002. |
| 7 |
# François Micaux, 2002. |
| 8 |
# Alain Portal <[email protected]>, 2003-2008. |
| 9 |
# Jean-Philippe Guérard <[email protected]>, 2005-2006. |
| 10 |
# Jean-Luc Coulon (f5ibh) <[email protected]>, 2006-2007. |
| 11 |
# Julien Cristau <[email protected]>, 2006-2007. |
| 12 |
# Thomas Huriaux <[email protected]>, 2006-2008. |
| 13 |
# Nicolas François <[email protected]>, 2006-2008. |
| 14 |
# Florentin Duneau <[email protected]>, 2006-2010. |
| 15 |
# Simon Paillard <[email protected]>, 2006, 2013. |
| 16 |
# Denis Barbier <[email protected]>, 2006, 2010. |
| 17 |
# David Prévot <[email protected]>, 2010, 2012-2014. |
| 18 |
msgid "" |
| 19 |
msgstr "" |
| 20 |
"Project-Id-Version: manpages-l10n 4.22.0\n" |
| 21 |
"POT-Creation-Date: 2026-06-05 06:30+0200\n" |
| 22 |
"PO-Revision-Date: 2024-05-07 19:34+0200\n" |
| 23 |
"Last-Translator: Jean-Pierre Giraud <[email protected]>\n" |
| 24 |
"Language-Team: French <[email protected]>\n" |
| 25 |
"Language: fr\n" |
| 26 |
"MIME-Version: 1.0\n" |
| 27 |
"Content-Type: text/plain; charset=UTF-8\n" |
| 28 |
"Content-Transfer-Encoding: 8bit\n" |
| 29 |
"Plural-Forms: nplurals=2; plural=n > 1;\n" |
| 30 |
"X-Generator: Lokalize 22.12.3\n" |
| 31 |
|
| 32 |
#. type: TH |
| 33 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 34 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 35 |
#, no-wrap |
| 36 |
msgid "mbstowcs" |
| 37 |
msgstr "mbstowcs" |
| 38 |
|
| 39 |
#. type: TH |
| 40 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 41 |
#: opensuse-tumbleweed |
| 42 |
#, no-wrap |
| 43 |
msgid "2026-02-08" |
| 44 |
msgstr "8 février 2026" |
| 45 |
|
| 46 |
#. type: TH |
| 47 |
#: archlinux debian-unstable |
| 48 |
#, no-wrap |
| 49 |
msgid "Linux man-pages 6.18" |
| 50 |
msgstr "Pages du manuel de Linux 6.18" |
| 51 |
|
| 52 |
#. type: SH |
| 53 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 54 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 55 |
#, no-wrap |
| 56 |
msgid "NAME" |
| 57 |
msgstr "NOM" |
| 58 |
|
| 59 |
#. type: Plain text |
| 60 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 61 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 62 |
msgid "mbstowcs - convert a multibyte string to a wide-character string" |
| 63 |
msgstr "" |
| 64 |
"mbstowcs - Convertir une chaîne de caractères multioctets en une chaîne de " |
| 65 |
"caractères larges" |
| 66 |
|
| 67 |
#. type: SH |
| 68 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 69 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 70 |
#, no-wrap |
| 71 |
msgid "LIBRARY" |
| 72 |
msgstr "BIBLIOTHÈQUE" |
| 73 |
|
| 74 |
#. type: Plain text |
| 75 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 76 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 77 |
msgid "Standard C library (I<libc>,\\ I<-lc>)" |
| 78 |
msgstr "Bibliothèque C standard (I<libc>,\\ I<-lc>)" |
| 79 |
|
| 80 |
#. type: SH |
| 81 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 82 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 83 |
#, no-wrap |
| 84 |
msgid "SYNOPSIS" |
| 85 |
msgstr "SYNOPSIS" |
| 86 |
|
| 87 |
#. type: Plain text |
| 88 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 89 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 90 |
#, no-wrap |
| 91 |
msgid "B<#include E<lt>stdlib.hE<gt>>\n" |
| 92 |
msgstr "B<#include E<lt>stdlib.hE<gt>>\n" |
| 93 |
|
| 94 |
#. type: Plain text |
| 95 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 96 |
#: opensuse-tumbleweed |
| 97 |
#, fuzzy, no-wrap |
| 98 |
#| msgid "" |
| 99 |
#| "B<size_t mbstowcs(wchar_t >I<dest>B<[restrict .>I<dsize>B<], const char *restrict >I<src>B<,>\n" |
| 100 |
#| "B< size_t >I<dsize>B<);>\n" |
| 101 |
msgid "" |
| 102 |
"B<size_t mbstowcs(>size_t dsize;\n" |
| 103 |
"B< wchar_t >I<dest>B<[restrict >I<dsize>B<], const char *restrict >I<src>B<,>\n" |
| 104 |
"B< size_t >I<dsize>B<);>\n" |
| 105 |
msgstr "" |
| 106 |
"B<size_t mbstowcs(wchar_t >I<dest>B<[restrict .>I<dsize>B<], const char *restrict >I<src>B<,>\n" |
| 107 |
"B< size_t >I<dsize>B<);>\n" |
| 108 |
|
| 109 |
#. type: SH |
| 110 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 111 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 112 |
#, no-wrap |
| 113 |
msgid "DESCRIPTION" |
| 114 |
msgstr "DESCRIPTION" |
| 115 |
|
| 116 |
#. type: Plain text |
| 117 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 118 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 119 |
msgid "" |
| 120 |
"If I<dest> is not NULL, convert the multibyte string I<src> to a wide-" |
| 121 |
"character string starting at I<dest>. At most I<dsize> wide characters are " |
| 122 |
"written to I<dest>. The sequence of characters in the string I<src> shall " |
| 123 |
"begin in the initial shift state. The conversion can stop for three reasons:" |
| 124 |
msgstr "" |
| 125 |
"Si I<dest> n'est pas un pointeur NULL, convertir la chaîne multioctet I<src> " |
| 126 |
"en chaîne de caractères larges I<dest>. Elle écrira au plus I<dsize> " |
| 127 |
"caractères larges dans I<dest>. La séquence de caractères dans la chaîne " |
| 128 |
"I<src> commencera dans l'état de décalage initial. La conversion peut " |
| 129 |
"s'arrêter pour l'une des trois raisons suivantes\\ :" |
| 130 |
|
| 131 |
#. type: IP |
| 132 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 133 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 134 |
#, no-wrap |
| 135 |
msgid "\\[bu]" |
| 136 |
msgstr "-" |
| 137 |
|
| 138 |
#. type: Plain text |
| 139 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 140 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 141 |
msgid "" |
| 142 |
"An invalid multibyte sequence has been encountered. In this case, I<(size_t)" |
| 143 |
"\\ -1> is returned." |
| 144 |
msgstr "" |
| 145 |
"Une séquence multioctet incorrecte a été rencontrée. Dans ce cas, elle " |
| 146 |
"renvoie I<(size_t)\\ -1>." |
| 147 |
|
| 148 |
#. type: Plain text |
| 149 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 150 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 151 |
#, fuzzy |
| 152 |
#| msgid "" |
| 153 |
#| "I<dsize> non-L\\[aq]\\e0\\[aq] wide characters have been stored at " |
| 154 |
#| "I<dest>. In this case, the number of wide characters written to I<dest> " |
| 155 |
#| "is returned, but the shift state at this point is lost." |
| 156 |
msgid "" |
| 157 |
"I<dsize> non-L\\[aq]\\[rs]0\\[aq] wide characters have been stored at " |
| 158 |
"I<dest>. In this case, the number of wide characters written to I<dest> is " |
| 159 |
"returned, but the shift state at this point is lost." |
| 160 |
msgstr "" |
| 161 |
"I<dsize> caractères larges différents de L\\[aq]\\e0\\[aq] ont été stockés " |
| 162 |
"dans I<dest>. Dans ce cas, le nombre de caractères larges écrits dans " |
| 163 |
"I<dest> est renvoyé, mais l'état de décalage en ce point est perdu." |
| 164 |
|
| 165 |
#. type: Plain text |
| 166 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 167 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 168 |
#, fuzzy |
| 169 |
#| msgid "" |
| 170 |
#| "The multibyte string has been completely converted, including the " |
| 171 |
#| "terminating null character (\\[aq]\\e0\\[aq]). In this case, the number " |
| 172 |
#| "of wide characters written to I<dest>, excluding the terminating null " |
| 173 |
#| "wide character, is returned." |
| 174 |
msgid "" |
| 175 |
"The multibyte string has been completely converted, including the " |
| 176 |
"terminating null character (\\[aq]\\[rs]0\\[aq]). In this case, the number " |
| 177 |
"of wide characters written to I<dest>, excluding the terminating null wide " |
| 178 |
"character, is returned." |
| 179 |
msgstr "" |
| 180 |
"La chaîne multioctet a été complètement convertie, y compris le caractère " |
| 181 |
"NULL final («\\ \\e0\\ »). Dans ce cas, le nombre de caractères larges " |
| 182 |
"écrits dans I<dest>, sans compter le caractère large NULL final, est renvoyé." |
| 183 |
|
| 184 |
#. type: Plain text |
| 185 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 186 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 187 |
msgid "" |
| 188 |
"If I<dest> is NULL, I<dsize> is ignored, and the conversion proceeds as " |
| 189 |
"above, except that the converted wide characters are not written out to " |
| 190 |
"memory, and that no length limit exists." |
| 191 |
msgstr "" |
| 192 |
"Si I<dest> est NULL, I<dsize> est ignoré, et la conversion se présente comme " |
| 193 |
"au-dessus, excepté que les caractères larges ne sont pas écrits en mémoire " |
| 194 |
"et qu'aucune limite de longueur n'existe." |
| 195 |
|
| 196 |
#. type: Plain text |
| 197 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 198 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 199 |
msgid "" |
| 200 |
"In order to avoid the case 2 above, the programmer should make sure I<dsize> " |
| 201 |
"is greater than or equal to I<mbstowcs(NULL,src,0)+1>." |
| 202 |
msgstr "" |
| 203 |
"Afin d'éviter la situation numéro 2 ci-dessus, le programmeur doit s'assurer " |
| 204 |
"que I<dsize> est supérieur ou égal a I<mbstowcs(NULL,src,0)+1>." |
| 205 |
|
| 206 |
#. type: Plain text |
| 207 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 208 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 209 |
msgid "" |
| 210 |
"The programmer must ensure that there is room for at least I<dsize> wide " |
| 211 |
"characters at I<dest>." |
| 212 |
msgstr "" |
| 213 |
"Le programmeur doit s'assurer qu'il y assez de place pour au moins I<dsize> " |
| 214 |
"caractères larges dans I<dest>." |
| 215 |
|
| 216 |
#. type: SH |
| 217 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 218 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 219 |
#, no-wrap |
| 220 |
msgid "RETURN VALUE" |
| 221 |
msgstr "VALEUR RENVOYÉE" |
| 222 |
|
| 223 |
#. type: Plain text |
| 224 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 225 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 226 |
msgid "" |
| 227 |
"The number of wide characters that make up the converted part of the wide-" |
| 228 |
"character string, not including the terminating null wide character. If an " |
| 229 |
"invalid multibyte sequence was encountered, I<(size_t)\\ -1> is returned." |
| 230 |
msgstr "" |
| 231 |
"Le nombre de caractères larges qui constituent la partie convertie de la " |
| 232 |
"chaîne, sans compter le caractère large NULL final. Si une séquence " |
| 233 |
"multioctet incorrecte est rencontrée, elle renvoie I<(size_t)\\ -1>." |
| 234 |
|
| 235 |
#. type: SH |
| 236 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 237 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 238 |
#, no-wrap |
| 239 |
msgid "ATTRIBUTES" |
| 240 |
msgstr "ATTRIBUTS" |
| 241 |
|
| 242 |
#. type: Plain text |
| 243 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 244 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 245 |
msgid "" |
| 246 |
"For an explanation of the terms used in this section, see B<attributes>(7)." |
| 247 |
msgstr "" |
| 248 |
"Pour une explication des termes utilisés dans cette section, consulter " |
| 249 |
"B<attributes>(7)." |
| 250 |
|
| 251 |
#. type: tbl table |
| 252 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 253 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 254 |
#, no-wrap |
| 255 |
msgid "Interface" |
| 256 |
msgstr "Interface" |
| 257 |
|
| 258 |
#. type: tbl table |
| 259 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 260 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 261 |
#, no-wrap |
| 262 |
msgid "Attribute" |
| 263 |
msgstr "Attribut" |
| 264 |
|
| 265 |
#. type: tbl table |
| 266 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 267 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 268 |
#, no-wrap |
| 269 |
msgid "Value" |
| 270 |
msgstr "Valeur" |
| 271 |
|
| 272 |
#. type: tbl table |
| 273 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 274 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 275 |
#, no-wrap |
| 276 |
msgid ".na\n" |
| 277 |
msgstr ".na\n" |
| 278 |
|
| 279 |
#. type: tbl table |
| 280 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 281 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 282 |
#, no-wrap |
| 283 |
msgid ".nh\n" |
| 284 |
msgstr ".nh\n" |
| 285 |
|
| 286 |
#. type: tbl table |
| 287 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 288 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 289 |
#, no-wrap |
| 290 |
msgid "B<mbstowcs>()" |
| 291 |
msgstr "B<mbstowcs>()" |
| 292 |
|
| 293 |
#. type: tbl table |
| 294 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 295 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 296 |
#, no-wrap |
| 297 |
msgid "Thread safety" |
| 298 |
msgstr "Sécurité des threads" |
| 299 |
|
| 300 |
#. type: tbl table |
| 301 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 302 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 303 |
#, no-wrap |
| 304 |
msgid "MT-Safe" |
| 305 |
msgstr "MT-Safe" |
| 306 |
|
| 307 |
#. type: SH |
| 308 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 309 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 310 |
#, no-wrap |
| 311 |
msgid "VERSIONS" |
| 312 |
msgstr "VERSIONS" |
| 313 |
|
| 314 |
#. type: Plain text |
| 315 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 316 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 317 |
msgid "" |
| 318 |
"The function B<mbsrtowcs>(3) provides a better interface to the same " |
| 319 |
"functionality." |
| 320 |
msgstr "" |
| 321 |
"La fonction B<mbsrtowcs>(3) fournit une meilleure interface pour la même " |
| 322 |
"fonctionnalité." |
| 323 |
|
| 324 |
#. type: SH |
| 325 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 326 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 327 |
#, no-wrap |
| 328 |
msgid "STANDARDS" |
| 329 |
msgstr "NORMES" |
| 330 |
|
| 331 |
#. type: Plain text |
| 332 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 333 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 334 |
msgid "C11, POSIX.1-2008." |
| 335 |
msgstr "C11, POSIX.1-2008." |
| 336 |
|
| 337 |
#. type: SH |
| 338 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 339 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 340 |
#, no-wrap |
| 341 |
msgid "HISTORY" |
| 342 |
msgstr "HISTORIQUE" |
| 343 |
|
| 344 |
#. type: Plain text |
| 345 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 346 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 347 |
msgid "POSIX.1-2001, C99." |
| 348 |
msgstr "POSIX.1-2001, C99." |
| 349 |
|
| 350 |
#. type: SH |
| 351 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 352 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 353 |
#, no-wrap |
| 354 |
msgid "NOTES" |
| 355 |
msgstr "NOTES" |
| 356 |
|
| 357 |
#. type: Plain text |
| 358 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 359 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 360 |
msgid "" |
| 361 |
"The behavior of B<mbstowcs>() depends on the B<LC_CTYPE> category of the " |
| 362 |
"current locale." |
| 363 |
msgstr "" |
| 364 |
"Le comportement de B<mbstowcs>() dépend de la catégorie B<LC_CTYPE> de la " |
| 365 |
"localisation en cours." |
| 366 |
|
| 367 |
#. type: SH |
| 368 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 369 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 370 |
#, no-wrap |
| 371 |
msgid "EXAMPLES" |
| 372 |
msgstr "EXEMPLES" |
| 373 |
|
| 374 |
#. type: Plain text |
| 375 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 376 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 377 |
msgid "" |
| 378 |
"The program below illustrates the use of B<mbstowcs>(), as well as some of " |
| 379 |
"the wide character classification functions. An example run is the " |
| 380 |
"following:" |
| 381 |
msgstr "" |
| 382 |
"Le programme ci-dessous illustre l’utilisation de B<mbstowcs>(), ainsi que " |
| 383 |
"de certaines fonctions de classification pour les caractères larges. Voici " |
| 384 |
"un exemple de son exécution." |
| 385 |
|
| 386 |
#. type: Plain text |
| 387 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 388 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 389 |
#, no-wrap |
| 390 |
msgid "" |
| 391 |
"$ ./t_mbstowcs de_DE.UTF-8 Grüße!\n" |
| 392 |
"Length of source string (excluding terminator):\n" |
| 393 |
" 8 bytes\n" |
| 394 |
" 6 multibyte characters\n" |
| 395 |
"\\&\n" |
| 396 |
"Wide character string is: Grüße! (6 characters)\n" |
| 397 |
" G alpha upper\n" |
| 398 |
" r alpha lower\n" |
| 399 |
" ü alpha lower\n" |
| 400 |
" ß alpha lower\n" |
| 401 |
" e alpha lower\n" |
| 402 |
" ! !alpha\n" |
| 403 |
msgstr "" |
| 404 |
"$ ./t_mbstowcs de_DE.UTF-8 Grüße!\n" |
| 405 |
"Taille de la chaîne source (sans le caractère final) :\n" |
| 406 |
" 8 octets\n" |
| 407 |
" 6 caractères multioctets\n" |
| 408 |
"\\&\n" |
| 409 |
"La chaîne de caractères larges est : Grüße! (6 caractères)\n" |
| 410 |
" G alpha majuscule\n" |
| 411 |
" r alpha minuscule\n" |
| 412 |
" ü alpha minuscule\n" |
| 413 |
" ß alpha minuscule\n" |
| 414 |
" e alpha minuscule\n" |
| 415 |
" ! !alpha\n" |
| 416 |
|
| 417 |
#. type: SS |
| 418 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 419 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 420 |
#, no-wrap |
| 421 |
msgid "Program source" |
| 422 |
msgstr "Source du programme" |
| 423 |
|
| 424 |
#. type: Plain text |
| 425 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 426 |
#: opensuse-tumbleweed |
| 427 |
#, fuzzy, no-wrap |
| 428 |
#| msgid "" |
| 429 |
#| "#include E<lt>locale.hE<gt>\n" |
| 430 |
#| "#include E<lt>stdio.hE<gt>\n" |
| 431 |
#| "#include E<lt>stdlib.hE<gt>\n" |
| 432 |
#| "#include E<lt>string.hE<gt>\n" |
| 433 |
#| "#include E<lt>wchar.hE<gt>\n" |
| 434 |
#| "#include E<lt>wctype.hE<gt>\n" |
| 435 |
#| "\\&\n" |
| 436 |
#| "int\n" |
| 437 |
#| "main(int argc, char *argv[])\n" |
| 438 |
#| "{\n" |
| 439 |
#| " size_t mbslen; /* Number of multibyte characters in source */\n" |
| 440 |
#| " wchar_t *wcs; /* Pointer to converted wide character string */\n" |
| 441 |
#| "\\&\n" |
| 442 |
#| " if (argc E<lt> 3) {\n" |
| 443 |
#| " fprintf(stderr, \"Usage: %s E<lt>localeE<gt> E<lt>stringE<gt>\\en\", argv[0]);\n" |
| 444 |
#| " exit(EXIT_FAILURE);\n" |
| 445 |
#| " }\n" |
| 446 |
#| "\\&\n" |
| 447 |
#| " /* Apply the specified locale. */\n" |
| 448 |
#| "\\&\n" |
| 449 |
#| " if (setlocale(LC_ALL, argv[1]) == NULL) {\n" |
| 450 |
#| " perror(\"setlocale\");\n" |
| 451 |
#| " exit(EXIT_FAILURE);\n" |
| 452 |
#| " }\n" |
| 453 |
#| "\\&\n" |
| 454 |
#| " /* Calculate the length required to hold argv[2] converted to\n" |
| 455 |
#| " a wide character string. */\n" |
| 456 |
#| "\\&\n" |
| 457 |
#| " mbslen = mbstowcs(NULL, argv[2], 0);\n" |
| 458 |
#| " if (mbslen == (size_t) -1) {\n" |
| 459 |
#| " perror(\"mbstowcs\");\n" |
| 460 |
#| " exit(EXIT_FAILURE);\n" |
| 461 |
#| " }\n" |
| 462 |
#| "\\&\n" |
| 463 |
#| " /* Describe the source string to the user. */\n" |
| 464 |
#| "\\&\n" |
| 465 |
#| " printf(\"Length of source string (excluding terminator):\\en\");\n" |
| 466 |
#| " printf(\" %zu bytes\\en\", strlen(argv[2]));\n" |
| 467 |
#| " printf(\" %zu multibyte characters\\en\\en\", mbslen);\n" |
| 468 |
#| "\\&\n" |
| 469 |
#| " /* Allocate wide character string of the desired size. Add 1\n" |
| 470 |
#| " to allow for terminating null wide character (L\\[aq]\\e0\\[aq]). */\n" |
| 471 |
#| "\\&\n" |
| 472 |
#| " wcs = calloc(mbslen + 1, sizeof(*wcs));\n" |
| 473 |
#| " if (wcs == NULL) {\n" |
| 474 |
#| " perror(\"calloc\");\n" |
| 475 |
#| " exit(EXIT_FAILURE);\n" |
| 476 |
#| " }\n" |
| 477 |
#| "\\&\n" |
| 478 |
#| " /* Convert the multibyte character string in argv[2] to a\n" |
| 479 |
#| " wide character string. */\n" |
| 480 |
#| "\\&\n" |
| 481 |
#| " if (mbstowcs(wcs, argv[2], mbslen + 1) == (size_t) -1) {\n" |
| 482 |
#| " perror(\"mbstowcs\");\n" |
| 483 |
#| " exit(EXIT_FAILURE);\n" |
| 484 |
#| " }\n" |
| 485 |
#| "\\&\n" |
| 486 |
#| " printf(\"Wide character string is: %ls (%zu characters)\\en\",\n" |
| 487 |
#| " wcs, mbslen);\n" |
| 488 |
#| "\\&\n" |
| 489 |
#| " /* Now do some inspection of the classes of the characters in\n" |
| 490 |
#| " the wide character string. */\n" |
| 491 |
#| "\\&\n" |
| 492 |
#| " for (wchar_t *wp = wcs; *wp != 0; wp++) {\n" |
| 493 |
#| " printf(\" %lc \", (wint_t) *wp);\n" |
| 494 |
#| "\\&\n" |
| 495 |
#| " if (!iswalpha(*wp))\n" |
| 496 |
#| " printf(\"!\");\n" |
| 497 |
#| " printf(\"alpha \");\n" |
| 498 |
#| "\\&\n" |
| 499 |
#| " if (iswalpha(*wp)) {\n" |
| 500 |
#| " if (iswupper(*wp))\n" |
| 501 |
#| " printf(\"upper \");\n" |
| 502 |
#| "\\&\n" |
| 503 |
#| " if (iswlower(*wp))\n" |
| 504 |
#| " printf(\"lower \");\n" |
| 505 |
#| " }\n" |
| 506 |
#| "\\&\n" |
| 507 |
#| " putchar(\\[aq]\\en\\[aq]);\n" |
| 508 |
#| " }\n" |
| 509 |
#| "\\&\n" |
| 510 |
#| " exit(EXIT_SUCCESS);\n" |
| 511 |
#| "}\n" |
| 512 |
msgid "" |
| 513 |
"#include E<lt>locale.hE<gt>\n" |
| 514 |
"#include E<lt>stdio.hE<gt>\n" |
| 515 |
"#include E<lt>stdlib.hE<gt>\n" |
| 516 |
"#include E<lt>string.hE<gt>\n" |
| 517 |
"#include E<lt>wchar.hE<gt>\n" |
| 518 |
"#include E<lt>wctype.hE<gt>\n" |
| 519 |
"\\&\n" |
| 520 |
"int\n" |
| 521 |
"main(int argc, char *argv[])\n" |
| 522 |
"{\n" |
| 523 |
" size_t mbslen; /* Number of multibyte characters in source */\n" |
| 524 |
" wchar_t *wcs; /* Pointer to converted wide character string */\n" |
| 525 |
"\\&\n" |
| 526 |
" if (argc E<lt> 3) {\n" |
| 527 |
" fprintf(stderr, \"Usage: %s E<lt>localeE<gt> E<lt>stringE<gt>\\[rs]n\", argv[0]);\n" |
| 528 |
" exit(EXIT_FAILURE);\n" |
| 529 |
" }\n" |
| 530 |
"\\&\n" |
| 531 |
" /* Apply the specified locale. */\n" |
| 532 |
"\\&\n" |
| 533 |
" if (setlocale(LC_ALL, argv[1]) == NULL) {\n" |
| 534 |
" perror(\"setlocale\");\n" |
| 535 |
" exit(EXIT_FAILURE);\n" |
| 536 |
" }\n" |
| 537 |
"\\&\n" |
| 538 |
" /* Calculate the length required to hold argv[2] converted to\n" |
| 539 |
" a wide character string. */\n" |
| 540 |
"\\&\n" |
| 541 |
" mbslen = mbstowcs(NULL, argv[2], 0);\n" |
| 542 |
" if (mbslen == (size_t) -1) {\n" |
| 543 |
" perror(\"mbstowcs\");\n" |
| 544 |
" exit(EXIT_FAILURE);\n" |
| 545 |
" }\n" |
| 546 |
"\\&\n" |
| 547 |
" /* Describe the source string to the user. */\n" |
| 548 |
"\\&\n" |
| 549 |
" printf(\"Length of source string (excluding terminator):\\[rs]n\");\n" |
| 550 |
" printf(\" %zu bytes\\[rs]n\", strlen(argv[2]));\n" |
| 551 |
" printf(\" %zu multibyte characters\\[rs]n\\[rs]n\", mbslen);\n" |
| 552 |
"\\&\n" |
| 553 |
" /* Allocate wide character string of the desired size. Add 1\n" |
| 554 |
" to allow for terminating null wide character (L\\[aq]\\[rs]0\\[aq]). */\n" |
| 555 |
"\\&\n" |
| 556 |
" wcs = calloc(mbslen + 1, sizeof(*wcs));\n" |
| 557 |
" if (wcs == NULL) {\n" |
| 558 |
" perror(\"calloc\");\n" |
| 559 |
" exit(EXIT_FAILURE);\n" |
| 560 |
" }\n" |
| 561 |
"\\&\n" |
| 562 |
" /* Convert the multibyte character string in argv[2] to a\n" |
| 563 |
" wide character string. */\n" |
| 564 |
"\\&\n" |
| 565 |
" if (mbstowcs(wcs, argv[2], mbslen + 1) == (size_t) -1) {\n" |
| 566 |
" perror(\"mbstowcs\");\n" |
| 567 |
" exit(EXIT_FAILURE);\n" |
| 568 |
" }\n" |
| 569 |
"\\&\n" |
| 570 |
" printf(\"Wide character string is: %ls (%zu characters)\\[rs]n\",\n" |
| 571 |
" wcs, mbslen);\n" |
| 572 |
"\\&\n" |
| 573 |
" /* Now do some inspection of the classes of the characters in\n" |
| 574 |
" the wide character string. */\n" |
| 575 |
"\\&\n" |
| 576 |
" for (wchar_t *wp = wcs; *wp != 0; wp++) {\n" |
| 577 |
" printf(\" %lc \", (wint_t) *wp);\n" |
| 578 |
"\\&\n" |
| 579 |
" if (!iswalpha(*wp))\n" |
| 580 |
" printf(\"!\");\n" |
| 581 |
" printf(\"alpha \");\n" |
| 582 |
"\\&\n" |
| 583 |
" if (iswalpha(*wp)) {\n" |
| 584 |
" if (iswupper(*wp))\n" |
| 585 |
" printf(\"upper \");\n" |
| 586 |
"\\&\n" |
| 587 |
" if (iswlower(*wp))\n" |
| 588 |
" printf(\"lower \");\n" |
| 589 |
" }\n" |
| 590 |
"\\&\n" |
| 591 |
" putchar(\\[aq]\\[rs]n\\[aq]);\n" |
| 592 |
" }\n" |
| 593 |
"\\&\n" |
| 594 |
" exit(EXIT_SUCCESS);\n" |
| 595 |
"}\n" |
| 596 |
msgstr "" |
| 597 |
"#include E<lt>locale.hE<gt>\n" |
| 598 |
"#include E<lt>stdio.hE<gt>\n" |
| 599 |
"#include E<lt>stdlib.hE<gt>\n" |
| 600 |
"#include E<lt>string.hE<gt>\n" |
| 601 |
"#include E<lt>wchar.hE<gt>\n" |
| 602 |
"#include E<lt>wctype.hE<gt>\n" |
| 603 |
"\\&\n" |
| 604 |
"int\n" |
| 605 |
"main(int argc, char *argv[])\n" |
| 606 |
"{\n" |
| 607 |
" size_t mbslen; /* Nombre de caractères multioctets dans\n" |
| 608 |
" la source */\n" |
| 609 |
" wchar_t *wcs; /* Pointeur vers la chaîne convertie de\n" |
| 610 |
" caractères larges */\n" |
| 611 |
"\\&\n" |
| 612 |
" if (argc E<lt> 3) {\n" |
| 613 |
" fprintf(stderr, \"Utilisation : %s E<lt>localeE<gt> E<lt>chaîneE<gt>\\en\", argv[0]);\n" |
| 614 |
" exit(EXIT_FAILURE);\n" |
| 615 |
" }\n" |
| 616 |
"\\&\n" |
| 617 |
" /* Appliquer les paramètres régionaux indiqués. */\n" |
| 618 |
"\\&\n" |
| 619 |
" if (setlocale(LC_ALL, argv[1]) == NULL) {\n" |
| 620 |
" perror(\"setlocale\");\n" |
| 621 |
" exit(EXIT_FAILURE);\n" |
| 622 |
" }\n" |
| 623 |
"\\&\n" |
| 624 |
" /* Calculer la taille nécessaire pour stocker argv[2] convertie en\n" |
| 625 |
" chaîne de caractères larges. */\n" |
| 626 |
"\\&\n" |
| 627 |
" mbslen = mbstowcs(NULL, argv[2], 0);\n" |
| 628 |
" if (mbslen == (size_t) -1) {\n" |
| 629 |
" perror(\"mbstowcs\");\n" |
| 630 |
" exit(EXIT_FAILURE);\n" |
| 631 |
" }\n" |
| 632 |
"\\&\n" |
| 633 |
" /* Décrire la chaîne source à l’utilisateur. */\n" |
| 634 |
"\\&\n" |
| 635 |
" printf(\"Taille de la chaîne source (sans le caractère final) :\\en\");\n" |
| 636 |
" printf(\" %zu octets\\en\", strlen(argv[2]));\n" |
| 637 |
" printf(\" %zu caractères multioctet\\en\\en\", mbslen);\n" |
| 638 |
"\\&\n" |
| 639 |
" /* Allouer une chaîne de caractères larges de la taille voulue. \n" |
| 640 |
" Ajouter 1 pour accepter le caractère NULL final large (L\\[aq]\\e0\\[aq]). */\n" |
| 641 |
"\\&\n" |
| 642 |
" wcs = calloc(mbslen + 1, sizeof(*wcs));\n" |
| 643 |
" if (wcs == NULL) {\n" |
| 644 |
" perror(\"calloc\");\n" |
| 645 |
" exit(EXIT_FAILURE);\n" |
| 646 |
" }\n" |
| 647 |
"\\&\n" |
| 648 |
" /* Convertir la chaîne de caractères multioctets de argv[2]\n" |
| 649 |
" en une chaîne de caractères larges. */\n" |
| 650 |
"\\&\n" |
| 651 |
" if (mbstowcs(wcs, argv[2], mbslen + 1) == (size_t) -1) {\n" |
| 652 |
" perror(\"mbstowcs\");\n" |
| 653 |
" exit(EXIT_FAILURE);\n" |
| 654 |
" }\n" |
| 655 |
"\\&\n" |
| 656 |
" printf(\"La chaîne de caractères larges est : %ls (%zu caractères)\\en\",\n" |
| 657 |
" wcs, mbslen);\n" |
| 658 |
"\\&\n" |
| 659 |
" /* Inspecter un peu les classes des caractères dans la chaîne\n" |
| 660 |
" de caractères larges. */\n" |
| 661 |
"\\&\n" |
| 662 |
" for (wchar_t *wp = wcs; *wp != 0; wp++) {\n" |
| 663 |
" printf(\" %lc \", (wint_t) *wp);\n" |
| 664 |
"\\&\n" |
| 665 |
" if (!iswalpha(*wp))\n" |
| 666 |
" printf(\"!\");\n" |
| 667 |
" printf(\"alpha \");\n" |
| 668 |
"\\&\n" |
| 669 |
" if (iswalpha(*wp)) {\n" |
| 670 |
" if (iswupper(*wp))\n" |
| 671 |
" printf(\"majuscule \");\n" |
| 672 |
"\\&\n" |
| 673 |
" if (iswlower(*wp))\n" |
| 674 |
" printf(\"minuscule \");\n" |
| 675 |
" }\n" |
| 676 |
"\\&\n" |
| 677 |
" putchar(\\[aq]\\en\\[aq]);\n" |
| 678 |
" }\n" |
| 679 |
"\\&\n" |
| 680 |
" exit(EXIT_SUCCESS);\n" |
| 681 |
"}\n" |
| 682 |
|
| 683 |
#. SRC END |
| 684 |
#. type: SH |
| 685 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 686 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 687 |
#, no-wrap |
| 688 |
msgid "SEE ALSO" |
| 689 |
msgstr "VOIR AUSSI" |
| 690 |
|
| 691 |
#. type: Plain text |
| 692 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 693 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 694 |
msgid "" |
| 695 |
"B<mblen>(3), B<mbsrtowcs>(3), B<mbtowc>(3), B<wcstombs>(3), B<wctomb>(3)" |
| 696 |
msgstr "" |
| 697 |
"B<mblen>(3), B<mbsrtowcs>(3), B<mbtowc>(3), B<wcstombs>(3), B<wctomb>(3)" |
| 698 |
|
| 699 |
#. type: TH |
| 700 |
#: debian-trixie |
| 701 |
#, no-wrap |
| 702 |
msgid "2024-06-15" |
| 703 |
msgstr "15 juin 2024" |
| 704 |
|
| 705 |
#. type: TH |
| 706 |
#: debian-trixie |
| 707 |
#, no-wrap |
| 708 |
msgid "Linux man-pages 6.9.1" |
| 709 |
msgstr "Pages du manuel de Linux 6.9.1" |
| 710 |
|
| 711 |
#. type: Plain text |
| 712 |
#: debian-trixie |
| 713 |
msgid "Standard C library (I<libc>, I<-lc>)" |
| 714 |
msgstr "Bibliothèque C standard (I<libc>, I<-lc>)" |
| 715 |
|
| 716 |
#. type: Plain text |
| 717 |
#: debian-trixie fedora-44 fedora-rawhide |
| 718 |
#, no-wrap |
| 719 |
msgid "" |
| 720 |
"B<size_t mbstowcs(wchar_t >I<dest>B<[restrict .>I<dsize>B<], const char *restrict >I<src>B<,>\n" |
| 721 |
"B< size_t >I<dsize>B<);>\n" |
| 722 |
msgstr "" |
| 723 |
"B<size_t mbstowcs(wchar_t >I<dest>B<[restrict .>I<dsize>B<], const char *restrict >I<src>B<,>\n" |
| 724 |
"B< size_t >I<dsize>B<);>\n" |
| 725 |
|
| 726 |
#. type: Plain text |
| 727 |
#: debian-trixie fedora-44 fedora-rawhide |
| 728 |
#, fuzzy, no-wrap |
| 729 |
#| msgid "" |
| 730 |
#| "#include E<lt>locale.hE<gt>\n" |
| 731 |
#| "#include E<lt>stdio.hE<gt>\n" |
| 732 |
#| "#include E<lt>stdlib.hE<gt>\n" |
| 733 |
#| "#include E<lt>string.hE<gt>\n" |
| 734 |
#| "#include E<lt>wchar.hE<gt>\n" |
| 735 |
#| "#include E<lt>wctype.hE<gt>\n" |
| 736 |
#| "\\&\n" |
| 737 |
#| "int\n" |
| 738 |
#| "main(int argc, char *argv[])\n" |
| 739 |
#| "{\n" |
| 740 |
#| " size_t mbslen; /* Number of multibyte characters in source */\n" |
| 741 |
#| " wchar_t *wcs; /* Pointer to converted wide character string */\n" |
| 742 |
#| "\\&\n" |
| 743 |
#| " if (argc E<lt> 3) {\n" |
| 744 |
#| " fprintf(stderr, \"Usage: %s E<lt>localeE<gt> E<lt>stringE<gt>\\en\", argv[0]);\n" |
| 745 |
#| " exit(EXIT_FAILURE);\n" |
| 746 |
#| " }\n" |
| 747 |
#| "\\&\n" |
| 748 |
#| " /* Apply the specified locale. */\n" |
| 749 |
#| "\\&\n" |
| 750 |
#| " if (setlocale(LC_ALL, argv[1]) == NULL) {\n" |
| 751 |
#| " perror(\"setlocale\");\n" |
| 752 |
#| " exit(EXIT_FAILURE);\n" |
| 753 |
#| " }\n" |
| 754 |
#| "\\&\n" |
| 755 |
#| " /* Calculate the length required to hold argv[2] converted to\n" |
| 756 |
#| " a wide character string. */\n" |
| 757 |
#| "\\&\n" |
| 758 |
#| " mbslen = mbstowcs(NULL, argv[2], 0);\n" |
| 759 |
#| " if (mbslen == (size_t) -1) {\n" |
| 760 |
#| " perror(\"mbstowcs\");\n" |
| 761 |
#| " exit(EXIT_FAILURE);\n" |
| 762 |
#| " }\n" |
| 763 |
#| "\\&\n" |
| 764 |
#| " /* Describe the source string to the user. */\n" |
| 765 |
#| "\\&\n" |
| 766 |
#| " printf(\"Length of source string (excluding terminator):\\en\");\n" |
| 767 |
#| " printf(\" %zu bytes\\en\", strlen(argv[2]));\n" |
| 768 |
#| " printf(\" %zu multibyte characters\\en\\en\", mbslen);\n" |
| 769 |
#| "\\&\n" |
| 770 |
#| " /* Allocate wide character string of the desired size. Add 1\n" |
| 771 |
#| " to allow for terminating null wide character (L\\[aq]\\e0\\[aq]). */\n" |
| 772 |
#| "\\&\n" |
| 773 |
#| " wcs = calloc(mbslen + 1, sizeof(*wcs));\n" |
| 774 |
#| " if (wcs == NULL) {\n" |
| 775 |
#| " perror(\"calloc\");\n" |
| 776 |
#| " exit(EXIT_FAILURE);\n" |
| 777 |
#| " }\n" |
| 778 |
#| "\\&\n" |
| 779 |
#| " /* Convert the multibyte character string in argv[2] to a\n" |
| 780 |
#| " wide character string. */\n" |
| 781 |
#| "\\&\n" |
| 782 |
#| " if (mbstowcs(wcs, argv[2], mbslen + 1) == (size_t) -1) {\n" |
| 783 |
#| " perror(\"mbstowcs\");\n" |
| 784 |
#| " exit(EXIT_FAILURE);\n" |
| 785 |
#| " }\n" |
| 786 |
#| "\\&\n" |
| 787 |
#| " printf(\"Wide character string is: %ls (%zu characters)\\en\",\n" |
| 788 |
#| " wcs, mbslen);\n" |
| 789 |
#| "\\&\n" |
| 790 |
#| " /* Now do some inspection of the classes of the characters in\n" |
| 791 |
#| " the wide character string. */\n" |
| 792 |
#| "\\&\n" |
| 793 |
#| " for (wchar_t *wp = wcs; *wp != 0; wp++) {\n" |
| 794 |
#| " printf(\" %lc \", (wint_t) *wp);\n" |
| 795 |
#| "\\&\n" |
| 796 |
#| " if (!iswalpha(*wp))\n" |
| 797 |
#| " printf(\"!\");\n" |
| 798 |
#| " printf(\"alpha \");\n" |
| 799 |
#| "\\&\n" |
| 800 |
#| " if (iswalpha(*wp)) {\n" |
| 801 |
#| " if (iswupper(*wp))\n" |
| 802 |
#| " printf(\"upper \");\n" |
| 803 |
#| "\\&\n" |
| 804 |
#| " if (iswlower(*wp))\n" |
| 805 |
#| " printf(\"lower \");\n" |
| 806 |
#| " }\n" |
| 807 |
#| "\\&\n" |
| 808 |
#| " putchar(\\[aq]\\en\\[aq]);\n" |
| 809 |
#| " }\n" |
| 810 |
#| "\\&\n" |
| 811 |
#| " exit(EXIT_SUCCESS);\n" |
| 812 |
#| "}\n" |
| 813 |
msgid "" |
| 814 |
"#include E<lt>locale.hE<gt>\n" |
| 815 |
"#include E<lt>stdio.hE<gt>\n" |
| 816 |
"#include E<lt>stdlib.hE<gt>\n" |
| 817 |
"#include E<lt>string.hE<gt>\n" |
| 818 |
"#include E<lt>wchar.hE<gt>\n" |
| 819 |
"#include E<lt>wctype.hE<gt>\n" |
| 820 |
"\\&\n" |
| 821 |
"int\n" |
| 822 |
"main(int argc, char *argv[])\n" |
| 823 |
"{\n" |
| 824 |
" size_t mbslen; /* Number of multibyte characters in source */\n" |
| 825 |
" wchar_t *wcs; /* Pointer to converted wide character string */\n" |
| 826 |
"\\&\n" |
| 827 |
" if (argc E<lt> 3) {\n" |
| 828 |
" fprintf(stderr, \"Usage: %s E<lt>localeE<gt> E<lt>stringE<gt>\\[rs]n\", argv[0]);\n" |
| 829 |
" exit(EXIT_FAILURE);\n" |
| 830 |
" }\n" |
| 831 |
"\\&\n" |
| 832 |
" /* Apply the specified locale. */\n" |
| 833 |
"\\&\n" |
| 834 |
" if (setlocale(LC_ALL, argv[1]) == NULL) {\n" |
| 835 |
" perror(\"setlocale\");\n" |
| 836 |
" exit(EXIT_FAILURE);\n" |
| 837 |
" }\n" |
| 838 |
"\\&\n" |
| 839 |
" /* Calculate the length required to hold argv[2] converted to\n" |
| 840 |
" a wide character string. */\n" |
| 841 |
"\\&\n" |
| 842 |
" mbslen = mbstowcs(NULL, argv[2], 0);\n" |
| 843 |
" if (mbslen == (size_t) -1) {\n" |
| 844 |
" perror(\"mbstowcs\");\n" |
| 845 |
" exit(EXIT_FAILURE);\n" |
| 846 |
" }\n" |
| 847 |
"\\&\n" |
| 848 |
" /* Describe the source string to the user. */\n" |
| 849 |
"\\&\n" |
| 850 |
" printf(\"Length of source string (excluding terminator):\\[rs]n\");\n" |
| 851 |
" printf(\" %zu bytes\\[rs]n\", strlen(argv[2]));\n" |
| 852 |
" printf(\" %zu multibyte characters\\[rs]n\\[rs]n\", mbslen);\n" |
| 853 |
"\\&\n" |
| 854 |
" /* Allocate wide character string of the desired size. Add 1\n" |
| 855 |
" to allow for terminating null wide character (L\\[aq]\\[rs]0\\[aq]). */\n" |
| 856 |
"\\&\n" |
| 857 |
" wcs = calloc(mbslen + 1, sizeof(*wcs));\n" |
| 858 |
" if (wcs == NULL) {\n" |
| 859 |
" perror(\"calloc\");\n" |
| 860 |
" exit(EXIT_FAILURE);\n" |
| 861 |
" }\n" |
| 862 |
"\\&\n" |
| 863 |
" /* Convert the multibyte character string in argv[2] to a\n" |
| 864 |
" wide character string. */\n" |
| 865 |
"\\&\n" |
| 866 |
" if (mbstowcs(wcs, argv[2], mbslen + 1) == (size_t) -1) {\n" |
| 867 |
" perror(\"mbstowcs\");\n" |
| 868 |
" exit(EXIT_FAILURE);\n" |
| 869 |
" }\n" |
| 870 |
"\\&\n" |
| 871 |
" printf(\"Wide character string is: %ls (%zu characters)\\[rs]n\",\n" |
| 872 |
" wcs, mbslen);\n" |
| 873 |
"\\&\n" |
| 874 |
" /* Now do some inspection of the classes of the characters in\n" |
| 875 |
" the wide character string. */\n" |
| 876 |
"\\&\n" |
| 877 |
" for (wchar_t *wp = wcs; *wp != 0; wp++) {\n" |
| 878 |
" printf(\" %lc \", (wint_t) *wp);\n" |
| 879 |
"\\&\n" |
| 880 |
" if (!iswalpha(*wp))\n" |
| 881 |
" printf(\"!\");\n" |
| 882 |
" printf(\"alpha \");\n" |
| 883 |
"\\&\n" |
| 884 |
" if (iswalpha(*wp)) {\n" |
| 885 |
" if (iswupper(*wp))\n" |
| 886 |
" printf(\"upper \");\n" |
| 887 |
"\\&\n" |
| 888 |
" if (iswlower(*wp))\n" |
| 889 |
" printf(\"lower \");\n" |
| 890 |
" }\n" |
| 891 |
"\\&\n" |
| 892 |
" putchar(\\[aq]\\[rs]n\\[aq]);\n" |
| 893 |
" }\n" |
| 894 |
"\\&\n" |
| 895 |
" exit(EXIT_SUCCESS);\n" |
| 896 |
"}\n" |
| 897 |
msgstr "" |
| 898 |
"#include E<lt>locale.hE<gt>\n" |
| 899 |
"#include E<lt>stdio.hE<gt>\n" |
| 900 |
"#include E<lt>stdlib.hE<gt>\n" |
| 901 |
"#include E<lt>string.hE<gt>\n" |
| 902 |
"#include E<lt>wchar.hE<gt>\n" |
| 903 |
"#include E<lt>wctype.hE<gt>\n" |
| 904 |
"\\&\n" |
| 905 |
"int\n" |
| 906 |
"main(int argc, char *argv[])\n" |
| 907 |
"{\n" |
| 908 |
" size_t mbslen; /* Nombre de caractères multioctets dans\n" |
| 909 |
" la source */\n" |
| 910 |
" wchar_t *wcs; /* Pointeur vers la chaîne convertie de\n" |
| 911 |
" caractères larges */\n" |
| 912 |
"\\&\n" |
| 913 |
" if (argc E<lt> 3) {\n" |
| 914 |
" fprintf(stderr, \"Utilisation : %s E<lt>localeE<gt> E<lt>chaîneE<gt>\\en\", argv[0]);\n" |
| 915 |
" exit(EXIT_FAILURE);\n" |
| 916 |
" }\n" |
| 917 |
"\\&\n" |
| 918 |
" /* Appliquer les paramètres régionaux indiqués. */\n" |
| 919 |
"\\&\n" |
| 920 |
" if (setlocale(LC_ALL, argv[1]) == NULL) {\n" |
| 921 |
" perror(\"setlocale\");\n" |
| 922 |
" exit(EXIT_FAILURE);\n" |
| 923 |
" }\n" |
| 924 |
"\\&\n" |
| 925 |
" /* Calculer la taille nécessaire pour stocker argv[2] convertie en\n" |
| 926 |
" chaîne de caractères larges. */\n" |
| 927 |
"\\&\n" |
| 928 |
" mbslen = mbstowcs(NULL, argv[2], 0);\n" |
| 929 |
" if (mbslen == (size_t) -1) {\n" |
| 930 |
" perror(\"mbstowcs\");\n" |
| 931 |
" exit(EXIT_FAILURE);\n" |
| 932 |
" }\n" |
| 933 |
"\\&\n" |
| 934 |
" /* Décrire la chaîne source à l’utilisateur. */\n" |
| 935 |
"\\&\n" |
| 936 |
" printf(\"Taille de la chaîne source (sans le caractère final) :\\en\");\n" |
| 937 |
" printf(\" %zu octets\\en\", strlen(argv[2]));\n" |
| 938 |
" printf(\" %zu caractères multioctet\\en\\en\", mbslen);\n" |
| 939 |
"\\&\n" |
| 940 |
" /* Allouer une chaîne de caractères larges de la taille voulue. \n" |
| 941 |
" Ajouter 1 pour accepter le caractère NULL final large (L\\[aq]\\e0\\[aq]). */\n" |
| 942 |
"\\&\n" |
| 943 |
" wcs = calloc(mbslen + 1, sizeof(*wcs));\n" |
| 944 |
" if (wcs == NULL) {\n" |
| 945 |
" perror(\"calloc\");\n" |
| 946 |
" exit(EXIT_FAILURE);\n" |
| 947 |
" }\n" |
| 948 |
"\\&\n" |
| 949 |
" /* Convertir la chaîne de caractères multioctets de argv[2]\n" |
| 950 |
" en une chaîne de caractères larges. */\n" |
| 951 |
"\\&\n" |
| 952 |
" if (mbstowcs(wcs, argv[2], mbslen + 1) == (size_t) -1) {\n" |
| 953 |
" perror(\"mbstowcs\");\n" |
| 954 |
" exit(EXIT_FAILURE);\n" |
| 955 |
" }\n" |
| 956 |
"\\&\n" |
| 957 |
" printf(\"La chaîne de caractères larges est : %ls (%zu caractères)\\en\",\n" |
| 958 |
" wcs, mbslen);\n" |
| 959 |
"\\&\n" |
| 960 |
" /* Inspecter un peu les classes des caractères dans la chaîne\n" |
| 961 |
" de caractères larges. */\n" |
| 962 |
"\\&\n" |
| 963 |
" for (wchar_t *wp = wcs; *wp != 0; wp++) {\n" |
| 964 |
" printf(\" %lc \", (wint_t) *wp);\n" |
| 965 |
"\\&\n" |
| 966 |
" if (!iswalpha(*wp))\n" |
| 967 |
" printf(\"!\");\n" |
| 968 |
" printf(\"alpha \");\n" |
| 969 |
"\\&\n" |
| 970 |
" if (iswalpha(*wp)) {\n" |
| 971 |
" if (iswupper(*wp))\n" |
| 972 |
" printf(\"majuscule \");\n" |
| 973 |
"\\&\n" |
| 974 |
" if (iswlower(*wp))\n" |
| 975 |
" printf(\"minuscule \");\n" |
| 976 |
" }\n" |
| 977 |
"\\&\n" |
| 978 |
" putchar(\\[aq]\\en\\[aq]);\n" |
| 979 |
" }\n" |
| 980 |
"\\&\n" |
| 981 |
" exit(EXIT_SUCCESS);\n" |
| 982 |
"}\n" |
| 983 |
|
| 984 |
#. type: TH |
| 985 |
#: fedora-44 fedora-rawhide |
| 986 |
#, no-wrap |
| 987 |
msgid "2024-07-23" |
| 988 |
msgstr "23 juillet 2024" |
| 989 |
|
| 990 |
#. type: TH |
| 991 |
#: fedora-44 fedora-rawhide |
| 992 |
#, no-wrap |
| 993 |
msgid "Linux man-pages 6.13" |
| 994 |
msgstr "Pages du manuel de Linux 6.13" |
| 995 |
|
| 996 |
#. type: TH |
| 997 |
#: mageia-cauldron |
| 998 |
#, no-wrap |
| 999 |
msgid "Linux man-pages 6.17" |
| 1000 |
msgstr "Pages du manuel de Linux 6.17" |
| 1001 |
|
| 1002 |
#. type: TH |
| 1003 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1004 |
#, no-wrap |
| 1005 |
msgid "Linux man-pages (unreleased)" |
| 1006 |
msgstr "Pages du manuel de Linux (non publiées)" |