mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-06 14:05:32 +00:00
ICU-21900 Fix ICU4C sample dtitvfmtsample segfault and update healthy code doc
This commit is contained in:
parent
6bdcd6d30f
commit
bf6b3236a3
2 changed files with 25 additions and 2 deletions
|
@ -469,6 +469,7 @@ make check
|
|||
|
||||
## Test ICU4C Samples and Demos
|
||||
|
||||
### Windows build and test
|
||||
To build the ICU4C samples on Windows with Visual Studio, use the following
|
||||
steps:
|
||||
|
||||
|
@ -489,6 +490,28 @@ steps:
|
|||
To test the sample programs, run the "source\\samples\\all\\samplecheck.bat"
|
||||
script for each configuration, and ensure that they are successful.
|
||||
|
||||
### Linux /Unix build and test
|
||||
To build and test ICU4C samples:
|
||||
|
||||
* In icu4c/source, run the configuration "./runConfigure Linux" (or appropriate system)
|
||||
* Build and install ICU4C.
|
||||
* Set PATH to include the bin directory of the installed ICU4c.
|
||||
* Set LD_LIBRARY_PATH to include the libs directory on the installed ICU4c.
|
||||
|
||||
|
||||
```
|
||||
cd icu4c/source
|
||||
cd samples
|
||||
# To clean all the test binaries
|
||||
make clean-samples-recursive
|
||||
# To rebuild them all
|
||||
make all-samples-recursive
|
||||
# To run all tests serially
|
||||
make check-samples-recursive
|
||||
|
||||
```
|
||||
|
||||
|
||||
## **Test ICU4C Demos via Docker**
|
||||
|
||||
See <https://github.com/unicode-org/icu-demos/blob/main/icu-kube/README.md>
|
||||
|
|
|
@ -51,7 +51,7 @@ static void dtitvfmtPreDefined() {
|
|||
UnicodeString("yMMMd"),
|
||||
UnicodeString("MMMMd"),
|
||||
UnicodeString("jm"),
|
||||
0,
|
||||
UnicodeString("")
|
||||
};
|
||||
u_fprintf(out,"%-10s%-22s%-22s%-35s%-35s\n", "Skeleton","from","to","Date Interval in en_US","Date Interval in Ja");
|
||||
int i=0;
|
||||
|
@ -107,7 +107,7 @@ static void dtitvfmtCustomized() {
|
|||
UnicodeString skeletons[] = {
|
||||
UnicodeString("yMMMd"),
|
||||
UnicodeString("Hm"),
|
||||
0,
|
||||
UnicodeString("")
|
||||
};
|
||||
u_printf("%-10s%-22s%-22s%-45s%-35s\n", "Skeleton", "from","to", "Date Interval in en_US","Date Interval in Ja");
|
||||
// Create an empty DateIntervalInfo object
|
||||
|
|
Loading…
Add table
Reference in a new issue