File: 112_manual_encoding_invalid.txt

package info (click to toggle)
boxes 2.3.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,800 kB
  • sloc: ansic: 10,566; lex: 517; sh: 503; makefile: 309; yacc: 272; lisp: 78
file content (15 lines) | stat: -rw-r--r-- 329 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
:DESC
A non-existent encoding is specified. Boxes falls back to the system encoding and logs a warning.

:ARGS
-n NON-EXISTENT
:INPUT
foo
:OUTPUT-FILTER
s/( falling back to) .*$/\1 [system encoding]/
:EXPECTED
boxes: Invalid character encoding: NON-EXISTENT - falling back to [system encoding]
/*******/
/* foo */
/*******/
:EOF