/* Happy XMas in C, Ansi-style */ /* * Send XMas wishes to every body * Adresse des voeux de Noël à la cité d'Évry * */
Des caractères non standards dans un code source C réputé 'ANSI'? C'est une provocation ?
#include <stdio.h> #include <stdlib.h>
int main(void) { puts("Happy Christmas every body !"); return EXIT_SUCCESS;
Pédanterie inutile
return 0;
}
J'ai horreur de cette période de surconsommation forcée... Ce soir je viens de voir une famille à la rue devant Inno Montparnasse avec 3 enfants de 2 à 4 ans... Pas possible ça.
-- A+
Emmanuel Delahaye
/* Happy XMas in C, Ansi-style */
/*
* Send XMas wishes to every body
* Adresse des voeux de Noël à la cité d'Évry
*
*/
Des caractères non standards dans un code source C réputé 'ANSI'? C'est
une provocation ?
#include <stdio.h>
#include <stdlib.h>
int main(void)
{
puts("Happy Christmas every body !");
return EXIT_SUCCESS;
Pédanterie inutile
return 0;
}
J'ai horreur de cette période de surconsommation forcée... Ce soir je
viens de voir une famille à la rue devant Inno Montparnasse avec 3
enfants de 2 à 4 ans... Pas possible ça.
/* Happy XMas in C, Ansi-style */ /* * Send XMas wishes to every body * Adresse des voeux de Noël à la cité d'Évry * */
Des caractères non standards dans un code source C réputé 'ANSI'? C'est une provocation ?
#include <stdio.h> #include <stdlib.h>
int main(void) { puts("Happy Christmas every body !"); return EXIT_SUCCESS;
Pédanterie inutile
return 0;
}
J'ai horreur de cette période de surconsommation forcée... Ce soir je viens de voir une famille à la rue devant Inno Montparnasse avec 3 enfants de 2 à 4 ans... Pas possible ça.
-- A+
Emmanuel Delahaye
candide
Emmanuel Delahaye wrote in news:43ad8cd6$0$25519 $:
/* Happy XMas in C, Ansi-style */ /* * Send XMas wishes to every body * Adresse des voeux de Noël à la cité d'Évry * */
Des caractères non standards dans un code source C réputé 'ANSI'? C'est une provocation ?
#include <stdio.h> #include <stdlib.h>
int main(void) { puts("Happy Christmas every body !"); return EXIT_SUCCESS;
Pédanterie inutile
return 0;
}
Remplace le champagne par l'antigel, c'est de saison.
Emmanuel Delahaye <emdel@YOURBRAnoos.fr> wrote in news:43ad8cd6$0$25519
$79c14f64@nan-newsreader-07.noos.net:
/* Happy XMas in C, Ansi-style */
/*
* Send XMas wishes to every body
* Adresse des voeux de Noël à la cité d'Évry
*
*/
Des caractères non standards dans un code source C réputé 'ANSI'? C'est
une provocation ?
#include <stdio.h>
#include <stdlib.h>
int main(void)
{
puts("Happy Christmas every body !");
return EXIT_SUCCESS;
Pédanterie inutile
return 0;
}
Remplace le champagne par l'antigel, c'est de saison.
Emmanuel Delahaye wrote in news:43ad8cd6$0$25519 $:
/* Happy XMas in C, Ansi-style */ /* * Send XMas wishes to every body * Adresse des voeux de Noël à la cité d'Évry * */
Des caractères non standards dans un code source C réputé 'ANSI'? C'est une provocation ?
#include <stdio.h> #include <stdlib.h>
int main(void) { puts("Happy Christmas every body !"); return EXIT_SUCCESS;
Pédanterie inutile
return 0;
}
Remplace le champagne par l'antigel, c'est de saison.
Pierre Maurette
/* Happy XMas in C, Ansi-style */ /* * Send XMas wishes to every body * Adresse des voeux de Noël à la cité d'Évry * */
Des caractères non standards dans un code source C réputé 'ANSI'? C'est une provocation ? Non, pas vraiment. Mais pas un hasard non plus. J'utilise les
caractères accentués dans les chaînes (c'est source de soucis) et les commentaires. Mais je ne représente rien, et il me semble pertinent de commenter en langue anglaise, même si je ne le fais pas. Mais ici, mon jeu de mots foireux demandait à la fois du français et de l'anglais.
#include <stdio.h> #include <stdlib.h>
int main(void) { puts("Happy Christmas every body !"); return EXIT_SUCCESS;
Pédanterie inutile
return 0; C'est Noël !
}
J'ai horreur de cette période de surconsommation forcée... Je fais également partie de ceux, nombreux parait-il, qui languissent
d'être au 2 janvier. Mais je serais malhonnête en mettant cette mélancolie sur le dos du spectacle de la consommation. C'est certainement beaucoup plus intime.
Ce soir je viens de voir une famille à la rue devant Inno Montparnasse avec 3 enfants de 2 à 4 ans... " Par le petit garçon qui meurt près de sa mère
Tandis que des enfants s’amusent au parterre ... " (Francis Jammes, mis en musique et chanté par Georges Brassens)
La période des fêtes de fin d'année privilégie effectivement le pathos. Un cynique dirait que le spectacle de la misère donne mauvais goût au foie gras. Nous ne somme pas cyniques, mais on constate que la loi et diverses ONG ont agi objectivement vers un masquage de la détresse pendant l'hiver et donc "les fêtes". Il me semble que c'est dans la tradition de partage mais surtout de trève qui entoure les fêtes de Noël.
Pas possible ça. C'est fait exprès ? Parce que cette phrase est mise par "Les Guignols
de l'Info" dans la bouche de L'Abbé Pierre: "T'est pas possible, ça, T'est pas possible".
-- Pierre Maurette
/* Happy XMas in C, Ansi-style */
/*
* Send XMas wishes to every body
* Adresse des voeux de Noël à la cité d'Évry
*
*/
Des caractères non standards dans un code source C réputé 'ANSI'? C'est une
provocation ?
Non, pas vraiment. Mais pas un hasard non plus. J'utilise les
caractères accentués dans les chaînes (c'est source de soucis) et les
commentaires. Mais je ne représente rien, et il me semble pertinent de
commenter en langue anglaise, même si je ne le fais pas. Mais ici, mon
jeu de mots foireux demandait à la fois du français et de l'anglais.
#include <stdio.h>
#include <stdlib.h>
int main(void)
{
puts("Happy Christmas every body !");
return EXIT_SUCCESS;
Pédanterie inutile
return 0;
C'est Noël !
}
J'ai horreur de cette période de surconsommation forcée...
Je fais également partie de ceux, nombreux parait-il, qui languissent
d'être au 2 janvier. Mais je serais malhonnête en mettant cette
mélancolie sur le dos du spectacle de la consommation. C'est
certainement beaucoup plus intime.
Ce soir je viens
de voir une famille à la rue devant Inno Montparnasse avec 3 enfants de 2 à 4
ans...
" Par le petit garçon qui meurt près de sa mère
Tandis que des enfants s’amusent au parterre
... "
(Francis Jammes, mis en musique et chanté par Georges Brassens)
La période des fêtes de fin d'année privilégie effectivement le pathos.
Un cynique dirait que le spectacle de la misère donne mauvais goût au
foie gras. Nous ne somme pas cyniques, mais on constate que la loi et
diverses ONG ont agi objectivement vers un masquage de la détresse
pendant l'hiver et donc "les fêtes". Il me semble que c'est dans la
tradition de partage mais surtout de trève qui entoure les fêtes de
Noël.
Pas possible ça.
C'est fait exprès ? Parce que cette phrase est mise par "Les Guignols
de l'Info" dans la bouche de L'Abbé Pierre: "T'est pas possible, ça,
T'est pas possible".
/* Happy XMas in C, Ansi-style */ /* * Send XMas wishes to every body * Adresse des voeux de Noël à la cité d'Évry * */
Des caractères non standards dans un code source C réputé 'ANSI'? C'est une provocation ? Non, pas vraiment. Mais pas un hasard non plus. J'utilise les
caractères accentués dans les chaînes (c'est source de soucis) et les commentaires. Mais je ne représente rien, et il me semble pertinent de commenter en langue anglaise, même si je ne le fais pas. Mais ici, mon jeu de mots foireux demandait à la fois du français et de l'anglais.
#include <stdio.h> #include <stdlib.h>
int main(void) { puts("Happy Christmas every body !"); return EXIT_SUCCESS;
Pédanterie inutile
return 0; C'est Noël !
}
J'ai horreur de cette période de surconsommation forcée... Je fais également partie de ceux, nombreux parait-il, qui languissent
d'être au 2 janvier. Mais je serais malhonnête en mettant cette mélancolie sur le dos du spectacle de la consommation. C'est certainement beaucoup plus intime.
Ce soir je viens de voir une famille à la rue devant Inno Montparnasse avec 3 enfants de 2 à 4 ans... " Par le petit garçon qui meurt près de sa mère
Tandis que des enfants s’amusent au parterre ... " (Francis Jammes, mis en musique et chanté par Georges Brassens)
La période des fêtes de fin d'année privilégie effectivement le pathos. Un cynique dirait que le spectacle de la misère donne mauvais goût au foie gras. Nous ne somme pas cyniques, mais on constate que la loi et diverses ONG ont agi objectivement vers un masquage de la détresse pendant l'hiver et donc "les fêtes". Il me semble que c'est dans la tradition de partage mais surtout de trève qui entoure les fêtes de Noël.
Pas possible ça. C'est fait exprès ? Parce que cette phrase est mise par "Les Guignols
de l'Info" dans la bouche de L'Abbé Pierre: "T'est pas possible, ça, T'est pas possible".
-- Pierre Maurette
Emmanuel Delahaye
Pas possible ça.
C'est fait exprès ? Parce que cette phrase est mise par "Les Guignols de l'Info"
connait pas.
dans la bouche de L'Abbé Pierre:
connait pas.
-- A+
Emmanuel Delahaye
Pas possible ça.
C'est fait exprès ? Parce que cette phrase est mise par "Les Guignols de
l'Info"
Des caractères non standards dans un code source C réputé 'ANSI'? C'est une provocation ?
Le C ANSI n'impose qu'une seule chose par rapport au charset utilisé : que les chiffres se trouvent à la suite. C est conçu pour fonctionner avec n'importe quel charset. Il n'y donc pas de caractères standards et non standards... D'autant que notre cher ami a bien indiqué utiliser ISO-8859-15 et que cela tient sur 8 bits, la taille usuelle d'un byte et donc d'un char.
On pourrait même utiliser UCS-32 sur une plateforme ou un byte c'est 32 bits. (en effet un byte est au moins 8 bits, et non pas exactement 8 bits)
Des caractères non standards dans un code source C réputé 'ANSI'? C'est
une provocation ?
Le C ANSI n'impose qu'une seule chose par rapport au charset utilisé :
que les chiffres se trouvent à la suite. C est conçu pour fonctionner
avec n'importe quel charset.
Il n'y donc pas de caractères standards et non standards...
D'autant que notre cher ami a bien indiqué utiliser ISO-8859-15 et que
cela tient sur 8 bits, la taille usuelle d'un byte et donc d'un char.
On pourrait même utiliser UCS-32 sur une plateforme ou un byte c'est 32
bits.
(en effet un byte est au moins 8 bits, et non pas exactement 8 bits)
Des caractères non standards dans un code source C réputé 'ANSI'? C'est une provocation ?
Le C ANSI n'impose qu'une seule chose par rapport au charset utilisé : que les chiffres se trouvent à la suite. C est conçu pour fonctionner avec n'importe quel charset. Il n'y donc pas de caractères standards et non standards... D'autant que notre cher ami a bien indiqué utiliser ISO-8859-15 et que cela tient sur 8 bits, la taille usuelle d'un byte et donc d'un char.
On pourrait même utiliser UCS-32 sur une plateforme ou un byte c'est 32 bits. (en effet un byte est au moins 8 bits, et non pas exactement 8 bits)
Des caractères non standards dans un code source C réputé 'ANSI'? C'est une provocation ?
Le C ANSI n'impose qu'une seule chose par rapport au charset utilisé : que les chiffres se trouvent à la suite. C est conçu pour fonctionner avec n'importe quel charset. Il n'y donc pas de caractères standards et non standards...
WG14/N1124 Committee Draft May 6, 2005 ISO/IEC 9899:TC2 5.2 Environmental considerations 5.2.1 Character sets 1 Tw o sets of characters and their associated collating sequences shall be defined: the set in which source files are written (the source character set), and the set interpreted in the execution environment (the execution character set). Each set is further divided into a basic character set, whose contents are given by this subclause, and a set of zero or more locale-specific members (which are not members of the basic character set) called extended characters. The combined set is also called the extended character set. The values of the members of the execution character set are implementation-defined. 2 In a character constant or string literal, members of the execution character set shall be represented by corresponding members of the source character set or by escape sequences consisting of the backslash followed by one or more characters. A byte with all bits set to 0, called the null character, shall exist in the basic execution character set; it is used to terminate a character string. 3 Both the basic source and basic execution character sets shall have the following members: the 26 uppercase letters of the Latin alphabet A B C D E F G H I J K L M N O P Q R S T U V W X Y Z the 26 lowercase letters of the Latin alphabet a b c d e f g h i j k l m n o p q r s t u v w x y z the 10 decimal digits 0 1 2 3 4 5 6 7 8 9 the following 29 graphic characters ! " # % & ' ( ) * + , - . / : ; < = > ? [ ] ^ _ { | } ~ the space character, and control characters representing horizontal tab, vertical tab, and form feed. The representation of each member of the source and execution basic character sets shall fit in a byte. In both the source and execution basic character sets, the value of each character after 0 in the above list of decimal digits shall be one greater than the value of the previous. In source files, there shall be some way of indicating the end of each line of text; this International Standard treats such an end-of-line indicator as if it were a single new-line character. In the basic execution character set, there shall be control characters representing alert, backspace, carriage return, and new line. If any other characters are encountered in a source file (except in an identifier, a character constant, a string literal, a header name, a comment, or a preprocessing token that is never §5.2.1 Environment 17 ISO/IEC 9899:TC2 Committee Draft May 6, 2005 WG14/N1124 converted to a token), the behavior is undefined. 4 Aletter is an uppercase letter or a lowercase letter as defined above; in this International Standard the term does not include other characters that are letters in other alphabets. 5 The universal character name construct provides a way to name other characters. Forward references: universal character names (6.4.3), character constants (6.4.4.4), preprocessing directives (6.10), string literals (6.4.5), comments (6.4.9), string (7.1.1).
-- A+
Emmanuel Delahaye
Des caractères non standards dans un code source C réputé 'ANSI'?
C'est une provocation ?
Le C ANSI n'impose qu'une seule chose par rapport au charset utilisé :
que les chiffres se trouvent à la suite. C est conçu pour fonctionner
avec n'importe quel charset.
Il n'y donc pas de caractères standards et non standards...
WG14/N1124 Committee Draft May 6, 2005 ISO/IEC 9899:TC2
5.2 Environmental considerations
5.2.1 Character sets
1 Tw o sets of characters and their associated collating sequences shall
be defined: the set in
which source files are written (the source character set), and the set
interpreted in the
execution environment (the execution character set). Each set is further
divided into a
basic character set, whose contents are given by this subclause, and a
set of zero or more
locale-specific members (which are not members of the basic character
set) called
extended characters. The combined set is also called the extended
character set. The
values of the members of the execution character set are
implementation-defined.
2 In a character constant or string literal, members of the execution
character set shall be
represented by corresponding members of the source character set or by
escape
sequences consisting of the backslash followed by one or more
characters. A byte with
all bits set to 0, called the null character, shall exist in the basic
execution character set; it
is used to terminate a character string.
3 Both the basic source and basic execution character sets shall have
the following
members: the 26 uppercase letters of the Latin alphabet
A B C D E F G H I J K L M
N O P Q R S T U V W X Y Z
the 26 lowercase letters of the Latin alphabet
a b c d e f g h i j k l m
n o p q r s t u v w x y z
the 10 decimal digits
0 1 2 3 4 5 6 7 8 9
the following 29 graphic characters
! " # % & ' ( ) * + , - . / :
; < = > ? [ ] ^ _ { | } ~
the space character, and control characters representing horizontal tab,
vertical tab, and
form feed. The representation of each member of the source and execution
basic
character sets shall fit in a byte. In both the source and execution
basic character sets, the
value of each character after 0 in the above list of decimal digits
shall be one greater than
the value of the previous. In source files, there shall be some way of
indicating the end of
each line of text; this International Standard treats such an
end-of-line indicator as if it
were a single new-line character. In the basic execution character set,
there shall be
control characters representing alert, backspace, carriage return, and
new line. If any
other characters are encountered in a source file (except in an
identifier, a character
constant, a string literal, a header name, a comment, or a preprocessing
token that is never
§5.2.1 Environment 17
ISO/IEC 9899:TC2 Committee Draft May 6, 2005 WG14/N1124
converted to a token), the behavior is undefined.
4 Aletter is an uppercase letter or a lowercase letter as defined above;
in this International
Standard the term does not include other characters that are letters in
other alphabets.
5 The universal character name construct provides a way to name other
characters.
Forward references: universal character names (6.4.3), character
constants (6.4.4.4),
preprocessing directives (6.10), string literals (6.4.5), comments
(6.4.9), string (7.1.1).
Des caractères non standards dans un code source C réputé 'ANSI'? C'est une provocation ?
Le C ANSI n'impose qu'une seule chose par rapport au charset utilisé : que les chiffres se trouvent à la suite. C est conçu pour fonctionner avec n'importe quel charset. Il n'y donc pas de caractères standards et non standards...
WG14/N1124 Committee Draft May 6, 2005 ISO/IEC 9899:TC2 5.2 Environmental considerations 5.2.1 Character sets 1 Tw o sets of characters and their associated collating sequences shall be defined: the set in which source files are written (the source character set), and the set interpreted in the execution environment (the execution character set). Each set is further divided into a basic character set, whose contents are given by this subclause, and a set of zero or more locale-specific members (which are not members of the basic character set) called extended characters. The combined set is also called the extended character set. The values of the members of the execution character set are implementation-defined. 2 In a character constant or string literal, members of the execution character set shall be represented by corresponding members of the source character set or by escape sequences consisting of the backslash followed by one or more characters. A byte with all bits set to 0, called the null character, shall exist in the basic execution character set; it is used to terminate a character string. 3 Both the basic source and basic execution character sets shall have the following members: the 26 uppercase letters of the Latin alphabet A B C D E F G H I J K L M N O P Q R S T U V W X Y Z the 26 lowercase letters of the Latin alphabet a b c d e f g h i j k l m n o p q r s t u v w x y z the 10 decimal digits 0 1 2 3 4 5 6 7 8 9 the following 29 graphic characters ! " # % & ' ( ) * + , - . / : ; < = > ? [ ] ^ _ { | } ~ the space character, and control characters representing horizontal tab, vertical tab, and form feed. The representation of each member of the source and execution basic character sets shall fit in a byte. In both the source and execution basic character sets, the value of each character after 0 in the above list of decimal digits shall be one greater than the value of the previous. In source files, there shall be some way of indicating the end of each line of text; this International Standard treats such an end-of-line indicator as if it were a single new-line character. In the basic execution character set, there shall be control characters representing alert, backspace, carriage return, and new line. If any other characters are encountered in a source file (except in an identifier, a character constant, a string literal, a header name, a comment, or a preprocessing token that is never §5.2.1 Environment 17 ISO/IEC 9899:TC2 Committee Draft May 6, 2005 WG14/N1124 converted to a token), the behavior is undefined. 4 Aletter is an uppercase letter or a lowercase letter as defined above; in this International Standard the term does not include other characters that are letters in other alphabets. 5 The universal character name construct provides a way to name other characters. Forward references: universal character names (6.4.3), character constants (6.4.4.4), preprocessing directives (6.10), string literals (6.4.5), comments (6.4.9), string (7.1.1).
-- A+
Emmanuel Delahaye
Richard Delorme
Des caractères non standards dans un code source C réputé 'ANSI'? C'est une provocation ?
[...]
If any other characters are encountered in a source file (except in an identifier, a character constant, a string literal, a header name, a comment, or a preprocessing token that is never converted to a token), the behavior is undefined.
D'après cet extrait, on peut mettre les caractères que l'on veut dans les commentaires.
-- Richard
Des caractères non standards dans un code source C réputé 'ANSI'?
C'est une provocation ?
[...]
If any other characters are encountered in a source file (except in an
identifier, a character constant, a string literal, a header name, a comment,
or a preprocessing token that is never converted to a token), the behavior is undefined.
D'après cet extrait, on peut mettre les caractères que l'on veut dans
les commentaires.
Des caractères non standards dans un code source C réputé 'ANSI'? C'est une provocation ?
[...]
If any other characters are encountered in a source file (except in an identifier, a character constant, a string literal, a header name, a comment, or a preprocessing token that is never converted to a token), the behavior is undefined.
D'après cet extrait, on peut mettre les caractères que l'on veut dans les commentaires.
-- Richard
Vincent Lefevre
Dans l'article <43ae6bd3$0$11351$, Richard Delorme écrit:
D'après cet extrait, on peut mettre les caractères que l'on veut dans les commentaires.
À condition qu'ils fassent partie du jeu de caractères ou qu'ils soient traduits sans erreur.