~ubuntu-branches/debian/sid/subversion/sid

« back to all changes in this revision

Viewing changes to subversion/libsvn_subr/quoprint.c

  • Committer: Package Import Robot
  • Author(s): James McCoy, Peter Samuelson, James McCoy
  • Date: 2014-01-12 19:48:33 UTC
  • mfrom: (0.2.10)
  • Revision ID: package-import@ubuntu.com-20140112194833-w3axfwksn296jn5x
Tags: 1.8.5-1
[ Peter Samuelson ]
* New upstream release.  (Closes: #725787) Rediff patches:
  - Remove apr-abi1 (applied upstream), rename apr-abi2 to apr-abi
  - Remove loosen-sqlite-version-check (shouldn't be needed)
  - Remove java-osgi-metadata (applied upstream)
  - svnmucc prompts for a changelog if none is provided. (Closes: #507430)
  - Remove fix-bdb-version-detection, upstream uses "apu-config --dbm-libs"
  - Remove ruby-test-wc (applied upstream)
  - Fix “svn diff -r N file” when file has svn:mime-type set.
    (Closes: #734163)
  - Support specifying an encoding for mod_dav_svn's environment in which
    hooks are run.  (Closes: #601544)
  - Fix ordering of “svnadmin dump” paths with certain APR versions.
    (Closes: #687291)
  - Provide a better error message when authentication fails with an
    svn+ssh:// URL.  (Closes: #273874)
  - Updated Polish translations.  (Closes: #690815)

[ James McCoy ]
* Remove all traces of libneon, replaced by libserf.
* patches/sqlite_3.8.x_workaround: Upstream fix for wc-queries-test test
  failurse.
* Run configure with --with-apache-libexecdir, which allows removing part of
  patches/rpath.
* Re-enable auth-test as upstream has fixed the problem of picking up
  libraries from the environment rather than the build tree.
  (Closes: #654172)
* Point LD_LIBRARY_PATH at the built auth libraries when running the svn
  command during the build.  (Closes: #678224)
* Add a NEWS entry describing how to configure mod_dav_svn to understand
  UTF-8.  (Closes: #566148)
* Remove ancient transitional package, libsvn-ruby.
* Enable compatibility with Sqlite3 versions back to Wheezy.
* Enable hardening flags.  (Closes: #734918)
* patches/build-fixes: Enable verbose build logs.
* Build against the default ruby version.  (Closes: #722393)

Show diffs side-by-side

added added

removed removed

Lines of Context:
120
120
{
121
121
  struct encode_baton *eb = baton;
122
122
  apr_pool_t *subpool = svn_pool_create(eb->pool);
123
 
  svn_stringbuf_t *encoded = svn_stringbuf_create("", subpool);
 
123
  svn_stringbuf_t *encoded = svn_stringbuf_create_empty(subpool);
124
124
  apr_size_t enclen;
125
125
  svn_error_t *err = SVN_NO_ERROR;
126
126
 
177
177
svn_stringbuf_t *
178
178
svn_quoprint_encode_string(const svn_stringbuf_t *str, apr_pool_t *pool)
179
179
{
180
 
  svn_stringbuf_t *encoded = svn_stringbuf_create("", pool);
 
180
  svn_stringbuf_t *encoded = svn_stringbuf_create_empty(pool);
181
181
  int linelen = 0;
182
182
 
183
183
  encode_bytes(encoded, str->data, str->len, &linelen);
233
233
          find2 = strchr(hextab, inbuf[2]);
234
234
          if (find1 != NULL && find2 != NULL)
235
235
            {
236
 
              c = ((find1 - hextab) << 4) | (find2 - hextab);
 
236
              c = (char)(((find1 - hextab) << 4) | (find2 - hextab));
237
237
              svn_stringbuf_appendbyte(str, c);
238
238
            }
239
239
          *inbuflen = 0;
254
254
 
255
255
  /* Decode this block of data.  */
256
256
  subpool = svn_pool_create(db->pool);
257
 
  decoded = svn_stringbuf_create("", subpool);
 
257
  decoded = svn_stringbuf_create_empty(subpool);
258
258
  decode_bytes(decoded, data, *len, db->buf, &db->buflen);
259
259
 
260
260
  /* Write the output, clean up, go home.  */
300
300
svn_stringbuf_t *
301
301
svn_quoprint_decode_string(const svn_stringbuf_t *str, apr_pool_t *pool)
302
302
{
303
 
  svn_stringbuf_t *decoded = svn_stringbuf_create("", pool);
 
303
  svn_stringbuf_t *decoded = svn_stringbuf_create_empty(pool);
304
304
  char ingroup[4];
305
305
  int ingrouplen = 0;
306
306