Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
104a9920
Commit
104a9920
authored
Oct 08, 2010
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Weaken test case so that it does not depend on the locale
parent
890f8ebc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
4 deletions
+1
-4
src/test/utf8.c
src/test/utf8.c
+1
-4
No files found.
src/test/utf8.c
View file @
104a9920
...
@@ -29,7 +29,6 @@
...
@@ -29,7 +29,6 @@
#include <stdio.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdlib.h>
#include <stdbool.h>
#include <stdbool.h>
#include <locale.h>
static
void
test
(
const
char
*
in
,
const
char
*
out
)
static
void
test
(
const
char
*
in
,
const
char
*
out
)
{
{
...
@@ -102,7 +101,6 @@ static void test_strcasestr (const char *h, const char *n, size_t offset)
...
@@ -102,7 +101,6 @@ static void test_strcasestr (const char *h, const char *n, size_t offset)
int
main
(
void
)
int
main
(
void
)
{
{
setlocale
(
LC_CTYPE
,
"fr_FR"
);
(
void
)
setvbuf
(
stdout
,
NULL
,
_IONBF
,
0
);
(
void
)
setvbuf
(
stdout
,
NULL
,
_IONBF
,
0
);
test
(
""
,
""
);
test
(
""
,
""
);
...
@@ -128,8 +126,7 @@ int main (void)
...
@@ -128,8 +126,7 @@ int main (void)
test_strcasestr
(
"heLLo"
,
"la"
,
-
1
);
test_strcasestr
(
"heLLo"
,
"la"
,
-
1
);
test_strcasestr
(
"heLLo"
,
"oa"
,
-
1
);
test_strcasestr
(
"heLLo"
,
"oa"
,
-
1
);
test_strcasestr
(
"Télé"
,
"é"
,
1
);
test_strcasestr
(
"Télé"
,
"é"
,
1
);
test_strcasestr
(
"Télé"
,
"É"
,
1
);
test_strcasestr
(
"Télé"
,
"élé"
,
1
);
test_strcasestr
(
"Télé"
,
"Élé"
,
1
);
test_strcasestr
(
"Télé"
,
"léé"
,
-
1
);
test_strcasestr
(
"Télé"
,
"léé"
,
-
1
);
return
0
;
return
0
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment