File: bug_8732.dia.ref

package info (click to toggle)
scilab 5.3.3-10
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 330,656 kB
file content (46 lines) | stat: -rw-r--r-- 2,029 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
// =============================================================================
// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
// Copyright (C) 2011 - Allan CORNET
//
//  This file is distributed under the same license as the Scilab package.
// =============================================================================
//
// <-- JVM NOT MANDATORY -->
//
// <-- Non-regression test for bug 8732 -->
//
// <-- Bugzilla URL -->
// http://bugzilla.scilab.org/show_bug.cgi?id=8732
//
// <-- Short Description -->
// strchr did not work with a non-ASCII character needle.
//
// =============================================================================
v = "世界您好";
c = "您";
if strchr(v, c) <> "您好" then bugmes();quit;end
if strrchr(v, c) <> "您好" then bugmes();quit;end
// =============================================================================
v = "азеаея";
c = "з";
if strchr(v, c) <> "зеаея" then bugmes();quit;end
if strrchr(v, c) <> "зеаея" then bugmes();quit;end
// =============================================================================
v = "азеаея";
c = "е";
if strchr(v, c) <> "еаея" then bugmes();quit;end
if strrchr(v, c) <> "ея" then bugmes();quit;end
// =============================================================================
v = "ハロー・ワールド";
c = "ド";
if strchr(v, c) <> "ド" then bugmes();quit;end
if strrchr(v, c) <> "ド" then bugmes();quit;end
// =============================================================================
v = "תוכנית";
c = "י";
if strchr(v, c) <> "ית" then bugmes();quit;end
if strrchr(v, c) <> "ית" then bugmes();quit;end
// =============================================================================
if strchr("This is a sample string with accent é&à", "é") <> "é&à" then bugmes();quit;end
if strrchr("This is a sample string with accent é&à", "é") <> "é&à" then bugmes();quit;end
// =============================================================================